https://www.acmicpc.net/problem/1193
n=input() n=int(n) i=0 while True: if n>i: n-=i i += 1 else: if i%2==1: print("%d/%d" % (i+1-n,n)) else: print("%d/%d" % (n,i+1-n)) break