import std.stdio; import std.algorithm; import std.ascii; void main() { readln.map!(c => (c.isDigit ? c - '0' : 0)).sum.writeln; }