S = raw_input() sum = 0 for i in range(0, len(S)): if S[i] == '0': sum += 10 else: sum += int(S[i]) print sum