#include #include void solve() { int y, m, d; std::cin >> y >> m >> d; auto l = std::make_tuple(1989, 1, 8), t = std::make_tuple(y, m, d), r = std::make_tuple(2019, 4, 30); std::cout << (l <= t && t <= r ? "Yes" : "No") << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }