def whereisX(x):
n, tmp = 0, 0
while True:
an = (n**2 + n + 2) // 2
if tmp <= x < an:
return [n, x-tmp]
break
n += 1
tmp = an
x = int(input())
list = whereisX(x)
level = list.pop(0)
distance = list.pop(0)
if level % 2 == 1:
print(str(level-distance) + "/" + str(distance+1))
else:
print(str(distance+1) + "/" + str(level-distance))
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15 16
~> 다음과 같은 계단형태임을 알게 됨
1 2 4 7 11 ..
계차수열
an = (n**2 + n + 2) / 2