f = lambda N:N-1&1-N>N**.5

for N in range(1, 1000):
	if f(N):
		print N