numlist=[0,1,2,3,4,5,6,7,8,9] sum=0 s=input() for i in s: if int(i) in numlist: sum+=int(i) print(sum)