import string s = input() ret = 0 for c in s: if c in string.digits: ret += int(c) print(ret)