#!/usr/bin/python # -*- coding: utf-8 -*- S = raw_input() ans = 0 for i in xrange(len(S)): if S[i].isdigit(): ans += int(S[i]) print ans