n = int(input())

line = 1
while n > line:
    n -= line
    line += 1
if line % 2 == 0:
    a = n
    b = line-n + 1
else:
    a = line-n + 1
    b = n

print(a, "/", b, sep="")

7586a555888eac23cd54170c6d40742e8089ffd5
<mask token>

<mask token>
while n > line:
    n -= line
    line += 1
if line % 2 == 0:
    a = n
    b = line - n + 1
else:
    a = line - n + 1
    b = n
print(a, '/', b, sep='')

n = int(input())
line = 1
while n > line:
    n -= line
    line += 1
if line % 2 == 0:
    a = n
    b = line - n + 1
else:
    a = line - n + 1
    b = n
print(a, '/', b, sep='')

n = int(input())

line = 1
while n > line:
    n -= line
    line += 1
if line % 2 == 0:
    a = n
    b = line-n + 1
else:
    a = line-n + 1
    b = n

print(a, "/", b, sep="")
