s = input() score = 0 for n in range(9): slice = s[n:n] if slice == 0: score += 10 else: score += int(slice)