import math, strutils, sugar let s = readLine stdin var ns = collect(newSeq): for c in s: if isDigit c: c.ord - 48 echo sum ns