local s, r = io.stdin:read("*l"), 0 for e in s:gmatch(".") do r = r + (e == "0" and 10 or tonumber(e)) end print(r)