N=int(input());[exit(0)if i**2>N else print(i**2)if(i+1)**2>N else print(end="")for i in range(1,N+1)]

N=int(input());[exit(0)if i**2>N else print(i**2)if(i+1)**2>N else lambda x:x for i in range(1,N+1)]

N = int(input())
[
    exit(0) if i ** 2 > N else print(i**2) if (i + 1) ** 2 > N else print(end="")
    for i in range(1, N + 1)
]

N = int(input())
[
    exit(0) if i ** 2 > N else print(i**2) if (i + 1) ** 2 > N else lambda x: x
    for i in range(1, N + 1)
]

-    exit(0) if i ** 2 > N else print(i**2) if (i + 1) ** 2 > N else print(end="") +    exit(0) if i ** 2 > N else print(i**2) if (i + 1) ** 2 > N else lambda x: x