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