score = [int(x) if int(x) > 0 else 10 for x in input()] print(sum(score))