#coding:utf-8 n=raw_input() ans=0 for i in n: if i.isdigit(): ans+=int(i) print ans