N=str(input()) cnt = 0 for i in range(len(N)): if N[i] == '0': cnt += 10 else: cnt += int(N[i]) print(cnt)