import fractions from functools import lru_cache N=int(input()) @lru_cache(maxsize=None) def A(N): if N==0: return fractions.Fraction(1) if N==1: return fractions.Fraction(1) if N>0: return A(N-1)-10*A(N-2) else: return (A(N+1)-A(N+2))/10 ab=A(-N) b,a=ab.denominator,ab.numerator if N-1<0: b*=10**(-N+1) else: a*=10**(N-1) print(a,b,sep="/")