n = list(input()) cnt = 0 for i in n: if i == '0': cnt += 10 else: cnt += int(i) print(cnt)