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

Задача 2961. Analysis of the digits of the number - 15


Задача

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

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