s = input() c = 0 for i in s: if i == "0": c += 10 else: c += int(i) print(c)