#include int main(){ int y,m,d; scanf("%d%d%d",&y,&m,&d); if(y<2019&&1989