let n = Scanf.sscanf (read_line ()) "%d" @@ fun n -> n
let q = Array.to_list @@ Array.init n @@ fun _ -> Scanf.sscanf (read_line ()) "%d %d %d" @@ fun t x y -> (t, x, y)

let rec loop (pt, px, py) = function
  | [] -> "Yes"
  | (p, x, y) as t :: rest ->
      let dd = abs (x - px) + abs (y - py) in
      let dt = p - pt in
      if dd > dt || dd mod 2 <> dt mod 2 then "No"
      else loop t rest

let () = print_endline @@ loop (0, 0, 0) q