let () = let y, m, d = Scanf.scanf "%d %d %d\n" (fun a b c -> a, b, c) in Printf.printf "%s\n" (if y < 2019 || (y = 2019 && m <= 4) then "Yes" else "No")