moji = input() c = len(moji) ans = 0 for i in range (c): try : int(moji[i]) except: pass else: ans += int(moji[i]) print (ans)