for l in range(1,10): print(str(int((10**l)/9)**2).rjust(8+l))