import java.time.LocalDate import java.util.Scanner object Yuki779 { val sc = new Scanner(System.in) def main(args: Array[String]): Unit ={ val now = LocalDate.of(sc.nextInt, sc.nextInt, sc.nextInt) val HeiseiStart = LocalDate.of(1989, 1, 8) val HeiseiEnd = LocalDate.of(2019, 4, 30) println(if( (now isAfter HeiseiStart) && (now isBefore HeiseiEnd) ) "Yes" else "No") } }