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