#include using namespace std; /////////////////// メイン /////////////////// int main () { //////////////////// 入力 //////////////////// int y, m, d; cin >> y >> m >> d; //////////////// 出力変数定義 //////////////// string result = "No"; //////////////////// 処理 //////////////////// if (y>1989&&y<2019) result = "Yes"; if (y==2019&&m<=4) result = "Yes"; if (y==1989&&m>1) result = "Yes"; if (y==1989&&m==1&&d>=8) result = "Yes"; //////////////////// 出力 //////////////////// cout << result << endl; //////////////////// 終了 //////////////////// return 0; }