def fibonacci(n): if n < 3: return 1 n -= 2 a, b, c, d, x, y, = 1, 1, 1, 0, 1, 1 while n > 0: if n & 1 == 1: x, y = a*x+b*y, c*x+d*y a,b,c,d=a*a+b*c,b*(a+d),c*(a+d),b*c+d*d n //= 2 return x L = int(input()) if L == 2: print(3) print(INF) else: print(L) ans = fibonacci(L) if L % 2 == 0: x = fibonacci(L//2) ans -= x*x print(ans)