Run id: 98643

------Input------
787
------Answer-----
NO
------Your output-----
YES