n = int(input()) if n == 2: print("INF") exit() m = n * (n - 1) // 2 x = n // 2 y = n - x print(m // (x * (x - 1) // 2 + y * (y - 1) // 2) * 2)