//Normal #define _GLIBCXX_DEBUG #define ll long long #include using namespace std; using Graph = vector>; void print(auto a){ cout << a; } void prints(auto a){ cout << a << " "; } void prints(){ cout << " "; } void printl(auto a){ cout << a << endl; } void printl(){ cout << endl; } void fix(int n){ cout << fixed << setprecision(n); } int main(){ int Y, M, D; cin >> Y >> M >> D; bool flag = false; switch(Y){ case 1989: if((M == 1 and 8 <= D) or M != 1) flag = true; break; case 2019: if(M <= 4) flag = true; break; default: if(1989 <= Y and Y <= 2019) flag = true; break; } flag ? printl("Yes") : printl("No"); return 0; }