#include using namespace std; int main() { int y, m, d; cin >> y >> m >> d; if (1989 < y && y < 2019) { cout << "Yes" << endl; return 0; } if (y == 1989) { if (1 < m) { cout << "Yes" << endl; return 0; } if (m == 1) { if (8 <= d) { cout << "Yes" << endl; return 0; } } } if (y == 2019) { if (m <= 4) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }