#include using namespace std; vector low({1989, 1, 8}), high({2019, 4, 30}), now(3); int main() { cin >> now[0] >> now[1] >> now[2]; if (low <= now && now <= high) cout << "Yes" << endl; else cout << "No" << endl; return 0; }