import sys import math L=input() if L==2: print 3 print "INF" else: if L<10: A=[1,1,1] for i in range(3,303): A.append(A[-1]+A[-2]) ret = A[L] if L%2 == 0: ret -= A[L/2]*A[L/2] else: a=1 b=1 t=0 for i in range(3,L+1): if i%100==0: print i a,b = b,a+b if L%2==0 and i == L/2: t = b ret = b - t*t print L print ret