"""
https://www.hackerrank.com/challenges/python-loops/
"""

if __name__ == '__main__':
    n = int(input())

    for x in range(0, n + 1):
        if x < n < 20:
            print(x * x)
d8134b8560ad23acdf234885e05896229a8ef8cc
<mask token>

<mask token>
if __name__ == '__main__':
    n = int(input())
    for x in range(0, n + 1):
        if x < n < 20:
            print(x * x)

"""
https://www.hackerrank.com/challenges/python-loops/
"""

if __name__ == '__main__':
    n = int(input())

    for x in range(0, n + 1):
        if x < n < 20:
            print(x * x)