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.minusDays(1)) && (now isBefore HeiseiEnd.plusDays(1)) ) "Yes" else "No") } }