#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(ll i=0;i> M >> D; ll x=100*M+D; if(f(x)) cout << "Yes" << endl; else cout << "No" << endl; return 0; }