Mirror of Mahatma Gandhi : HackerEarth Problem Solution

Mirror of Mahatma Gandhi : HackerEarth Problem Solution

Input:


101 
020

Output:

YES 
NO

Implementation: