f=lambda n,m=1:m<=n and f(n,m*10)or-~m*n*nprint(f(12))print(f(1))print(f(2))print(f(3))print(f(10))print(f(174))
Standard input is empty
14544 11 44 99 10100 30306276
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!