#include using namespace std; #define int long long signed main(){ int A,B,C; cin>>A>>B>>C; int t = 10000*A+B*100+C; int a = 1989*10000+100+8; int b = 2019*10000+4*100+30; cout<<((a <= t && t <= b) ? "Yes" : "No")<