X = int(input())
def find_fraction(X):
count = 0
for i in range(1,X+1):
if (count+i) < X:
count += i
continue
else:
for j in range(1,i+1):
count += 1
if count == X:
if i%2== 0:
print((str(j)+'/'+str(i+1-j)))
else:
print(str(i+1-j)+'/'+str(j))
return
find_fraction(X)