import std; void main() { auto S = readln.strip; S.replaceAll(regex("[a-zA-Z]"), "").split("").to!(int[]).sum.writeln; }