n = input()n = int(n)ans = 0while n > 0: ans+=1 n /= 10print(ans)
23948
328
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!