# -*- coding: utf-8 -*- s = input() sum = 0 for i in s: if i.isdecimal(): sum += int(i) else: pass print(sum)