# quadsum2 
# Fig. 7.3 
# input: 100

import math

n = int(input("n=? "))
x = math.trunc(math.sqrt(n/2))
y = x   # jump from A to B
while x*x <= n:
  # go from B to C
  while x*x + y*y > n:
    y -= 1
  if x*x + y*y == n:
    print("x ==", x, "; y ==", y)
  x += 1
  y -= 1
