number = int(input().strip()) for i in range(1, number): print(i**2) if i**2 < number else ...