import sys def carres(a, b): if a > b: c = a; a = b; b = c; for n in range(a, b+1): print (n*n) x = input("") y = input("") carres(int(x), int(y))