let () =
  let n = Scanf.scanf "%d " (fun a -> a) in
  let pair_l = Array.to_list @@ Array.init n (fun _ -> Scanf.scanf "%d %d %d " (fun a b c -> a,b,c)) in

  let rec aux cur = function
      [] -> "Yes"
    | hd :: tl -> 
      let ct,cx,cy = cur in
      let nt,nx,ny = hd in
      let a = abs (cx-nx) in
      let b = abs (cy-ny) in
      let c = nt-ct in
      if a+b <= c && (c-(a+b)) mod 2 = 0 then aux (nt,nx,ny) tl else "No"
  in

  Printf.printf "%s\n" @@
  aux (0,0,0) pair_l
