#include #define rep(i, ss, ee) for (int i = ss; i < ee; ++i) using namespace std; void solve() { vector s{1989, 1, 8}; vector e{2019, 4, 30}; vector t(3); cin >> t[0] >> t[1] >> t[2]; cout << ((s < t && t < e) ? "Yes" : "No") << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); getchar(); }