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