#include using namespace std; typedef long long ll; int main() { int y,m,d;cin>>y>>m>>d; if (y<1989||2019