print(sum(ord(c) - 48 for c in raw_input() if c in set('0123456789')))