import strutils proc trfm(x: int): int = x + 10 * int(x == 0) let S = readLine stdin var scr = 0 for s in S: scr += ($s).parseInt.trfm echo scr