# -*- coding: utf-8 -*- import re s = re.findall(r'[0-9]', input()) ans = sum([int(i) for i in s]) print(ans)