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