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

Задача 24687. Analysis of the digits of the number - 14


Задача

Темы: Цикл while
The first line contains the natural number n 
The second line contains the number B
Display
-  the word YES, if the sum of its digits is greater than the number B, and the number itself is even
-  otherwise print the word NO

Sample input and output
test number Input Output
1 45545 
15
NO
 
2 554
5
YES