Module: Java. Conditional operator


Problem

8 /17


Two-digit number

Problem

Given a two-digit number n and a number a. Determine:
a) Is the sum of its digits a two-digit number? (Output YES or NO on the first line).
b) Is the sum of the digits of the entered number n greater than the number a? (Output YES or NO on the second line).


Input format
The number n (10 <= n <= 99) is entered in the first line, in second line - number a (0 < a <= 100).

Output format
Output the answers to the questions of the problem, each on a separate line, in uppercase. The answer to the first question should be on the first line, and the answer to the second question should be on the second line.
 
Example
N Input Output
1 25
7
NO
NO