File standardInput readLines map(asNumber)map(n,d:=0;for(a,1,11,d=n%a*10**a/10+d;n=n/a|0)d asString(0,0)println)