#include #include #include int main() { //std::ifstream inf("Text.txt"); std::cin.rdbuf(inf.rdbuf()); int Y, M, D; std::cin >> Y >> M >> D; bool flg = false; if (Y < 1989) {} else if (Y == 1989) { if (M == 1) { if (D < 8) {} else { flg = true; } } else { flg = true; } } else if (Y < 2019) { flg = true; } else if (Y == 2019) { if (M < 5) { flg = true; } } if (flg) { std::cout << "Yes" << std::endl; } else { std::cout << "No" << std::endl; } return 0; }