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