import sys L = int(input()) if L == 2: print("INF") print(0) sys.exit() def matmul(a, b, c, d, x, y, z, w): return (a * x + b * z, a * y + b * w, c * x + d * z, c * y + d * w) def F(n): x, y, z, w = 1, 0, 0, 1 a, b, c, d = 1, 1, 1, 0 while n > 0: if n % 2 == 1: x, y, z, w = matmul(a, b, c, d, x, y, z, w) a, b, c, d = matmul(a, b, c, d, a, b, c, d) n //= 2 return z way = F(L) if L % 2 == 0: way -= F(L // 2) ** 2 print(L) print(way)