str=input () sum=0 for i in str: sum+=i print(sum)