n=input('Ingrese un número: ')p='01234567' l=len(n)q=1z=2n1=nif n in p: while (q<=l): m=((n[-q])) m=int(m) o=8**z y=(m*o) print (n,y) z+=1 q+=1