using namespace std; #include int main(){ int Y,M,D; cin >> Y >> M >> D; if (Y>1989 && M>1 && D > 8 || Y<=2019 && M<=4 && D<=30){ cout << "Yes" << endl; }else{ cout << "No" << endl; } }