import std; void main() { auto s = readln.chomp; s.filter!(c => c.isDigit).map!(c => (c - '0').to!int).sum.writeln; }