Problems
096
096
096
Input example #1
123
Output example #1
YES
Input example #2
477
Output example #2
NO
096
123
YES
477
NO