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