# リストを作成する a=input() b=0 for i in a: if i.isdigit(): b+=int(i) print(b)