|
|
back to boardAC python Posted by soroush 12 Aug 2019 13:37 a=int(input()) if a==0: print(10) exit() if a==1: print(1) exit() def tajzie(n): t=[] i=9 while n!=1: while n%i==0: n=n//i t=t+[i] if (i==2 and n!=1): return(t+[n]) i=i-1 return(t) try: l=tajzie(a) if max(l)>9: 1/0 l=l[::-1] for i in l: print(i,end="") except: print(-1) |
|
|