#include using namespace std; const long long INF = 1LL << 60; #define MOD 1000000007; typedef long long ll; #define writeln(n) cout< P; typedef pair Psi; vector low ={1989,1,8}; vector high = {2019,4,30}; vector now(3); int main() { cin>>now[0]>>now[1]>>now[2]; if(low <=now && now <= high){ writeln("Yes"); }else { writeln("No"); } }