>>> a = 234567
>>> b = 0
>>> res = []
>>> while a>10:
... b = a // 10
... res.append(a - b*10)
... a = b
...
>>> res.append(a)
>>> out = []
>>> for i, im in enumerate(res):
... out.append(f'{im}*10**{i}')
...
>>> ' + '.join(out[::-1])
'2*10**5 + 3*10**4 + 4*10**3 + 5*10**2 + 6*10**1 + 7*10**0'
>>> eval(' + '.join(out[::-1]))
234567
n = 234567
l = list(str(n))
print(" + ".join([i + "**10**" + str(l[::-1].index(i)) for i in l]))