Олимпиадный тренинг

Задача 32989. The sum of the digits of a number


Given a two-digit number. Determine if the sum of its digits is a two-digit number. If not, then after how many numbers to meet the first two-digit number that satisfies this condition.

Input 
A single number is entered from the keyboard N (\(10 <= N <= 99\)).

Imprint 
Display the word YES if the sum of the digits of the number N is a two-digit number, otherwise display a number that shows how many numbers from the original N > meet the first number whose sum of digits will be a two-digit number.
 

 

Examples
# Input Output
1 65 YES
2 25 3