S = list(map(int, input())) ans = 0 for s in S: if s == 0: ans += 10 else: ans += s print(ans)