s=list(input()) g=0 for i in s: if i<="9": g+=int(i) print(g)