s=input() print(sum(map(int,filter(str.isdecimal,list(s)))))