N=int(input()) def solve(N): if N<=0: a=[1, 1, -9, -19, 71, 261, -449, -3059, 1431, 32021, 17711, -302499, -479609, 2545381, 7341471, -18112339, -91527049, 89596341, 1004866831, 108903421, -9939764889][-N] b=10**(1-N) elif N==1: a,b=0,1 else: a,b=solve(2-N) return a,b a,b=solve(N) print(a,b,sep="/")