A = int(input())k = 1f = 1s = 0while f <= A: k += 1 f *= k s += fprint(k)
24
5
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!