Limits 1s, 512 MB

Nowadays newly joined programmers of MU_ACM are doing incredible. Within few months they have learnt how to play with integers , arrays as well as strings . More or less of them are capable of separating all digits from an integer even big-integer is nothing to them.

Emrul and Rafat are friends. Emrul likes digits. Every time he asks Rafat to say a number and within a second magically Emrul can calculate the sum of each digits of that number. With a surprise impression, Rafat is trying to find out the magic of Emrul.

Today is Intra Metropolitan University Junior Programming Contest 2017 and contestants of this event has to help Rafat.

Input

You will be given a number, the number can be as large as 1000 digits maximum. You must read until you reach the end of file.

Output

Separating the digits print the summation of them.

Sample

InputOutput
520
9590000000000000000000000000000005
7
28

Submit

Login to submit.

Statistics

93% Solution Ratio
sarwarITEarliest, Jul '17
mashfiqur404Fastest, 0.0s
rafid1221174Lightest, 5.4 kB
Nusab19Shortest, 62B
Toph uses cookies. By continuing you agree to our Cookie Policy.