if __name__ == '__main__': s = list(input()) ans = 0 for i in s: if i.isdecimal(): ans += int(i) print(ans)