numstr = raw_input("Ingrese un nro: ")
num = int(numstr)
cuad = num ** 2
cuadstr = str(cuad)
print " ".join(cuadstr[::-1])

