S=input() U=set(map(str,range(10))) T=0 for s in S: if s in U: T+=int(s) print(T)