#include #include #include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int Y,M,D; string X; cin >> Y >> M >> D; X = "No"; if (Y > 1989) { X = "Yes"; } if (X == "Yes") { if (Y == 1989) { if(M > 0){ X = "Yes"; } } } if (X == "Yes") { if (M == 1) { if (D > 7){ X = "Yes"; } } } if (Y < 2020) { X = "Yes"; } if (X == "Yes") { if (Y == 2019) { if(M < 6){ X = "Yes"; } } } if (X == "Yes") { if (M == 5) { if (D < 31){ X = "Yes"; } } } cout << X << "\n"; }