#include using namespace std; #include using namespace boost::gregorian; bool isHeisei(int y, int m, int d) { const date s(1989, 1, 8); const date e(2019, 4, 30); date t(y, m, d); return (s <= t && t <= e); } void solve() { int y, m, d; cin >> y >> m >> d; cout << ((isHeisei(y, m, d)) ? "Yes" : "No") << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); getchar(); }