x=input()print(int(x)+sum(map(int, list(x)))+len(x))
99
119
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!