#include #include #include #include #include #include #include using namespace std; using uint = unsigned int; using ll = long long; #define CIN( LL , A ) LL A; cin >> A #define GETLINE( A ) string A; getline( cin , A ) #define FOR_ITR( ARRAY , ITR , END ) for( auto ITR = ARRAY .begin() , END = ARRAY .end() ; ITR != END ; ITR ++ ) int main() { CIN( ll , Y ); CIN( ll , M ); CIN( ll , D ); bool b; if( Y < 1989 ){ b = false; } else if( Y == 1989 ){ if( M == 1 ){ if( D < 8 ){ b = false; } else { b = true; } } else { b = true; } } else if ( Y < 2019 ){ b = true; } else if( Y == 2019 ){ if( M <= 4 ){ b = true; } else { b = false;; } } else { b = false; } const string answer = ( b ? "Yes" : "No" ); cout << answer << endl; return 0; }