for i in range (1,10+1):
print(i**2)
n = int(input())
m = int(input())
for i in range(n, m + 1):
print(i ** 2)
for i in range (1,10+1):
print(i**2)
n = int(input())
m = int(input())
for i in range(n, m + 1):
print(i ** 2)