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.
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.
Separating the digits print the summation of them.
Login to submit