a = io.read("*n") for i = 1, 10000 do for j = 1, 10000 do z = i * i + j * j if z == a then print("Yes") os.exit() end if a < z then break end end end print("No")