// No.779 Heisei package main import ( "fmt" "time" ) func main() { var y, m, d int fmt.Scan(&y, &m, &d) t := time.Date(y, time.Month(m), d, 0, 0, 0, 0, time.Local) hs := time.Date(1989, time.Month(1), 8, 0, 0, 0, 0, time.Local) he := time.Date(2019, time.Month(4), 30, 0, 0, 0, 0, time.Local) if t.Compare(hs) >= 0 && t.Compare(he) <= 0 { fmt.Println("Yes") } else { fmt.Println("No") } }