S = input() A = 0 for c in S: A += int(c) if c != '0' else 10 print(A)