str = input() n = 0 for c in str: if c.isdecimal(): n += int(c) # print(c, c.isdecimal(), n) print(n)