S = input() test = list(S) ind =0 for i in test: i = int(i) ind += i if i==0: ind += 10 print(ind)