int scan() { int a; rd(a); return a; } { vector low = {1989, 1, 8}, high = {2019, 4, 30}; vector now = {scan(), scan(), scan()}; if (low <= now && now <= high) wt("Yes"); else wt("No"); }