y, m, d = io.read("*n", "*n", "*n") if(y < 1989) then io.write("No") elseif(y == 1989) then if(m == 1) then if(d < 8) then io.write("No") else io.write("Yes") end else io.write("Yes") end elseif(y < 2019) then io.write("Yes") else if(m <= 4) then io.write("Yes") else io.write("No") end end