#include using namespace std; int main() { int y, m, d; cin>>y>>m>>d; if (y >= 1990 && y <= 2018) { cout<<"Yes"<= 2020) { cout<<"No"<