L = int(input()) if L == 2: print("INF") print(0) else: if L % 2 == 0: k = L // 2 ways = k * (k + 1) else: ways = L print(L) print(ways)