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

Задача 2955. Analysis of the digits of the number - 18


Задача

Темы: Цикл while
The first line contains the natural number n 
The second line contains the number  B
Display the word YES if the digit B does not occur in the number 
the word NO if the digit B occurs in the number 

Sample input and output
test number Input Output
1 45545
6
YES