import strutils let input = stdin.readLine var score = 0 for index in 0..8: if input[index] == '0': score += 10 else: score += parseInt($input[index]) echo score