a=map(input().split("")) b=0 for i in a: b+=i print(b)