let readLocations n =
  List.init n (fun _ -> (Scanf.sscanf (read_line ()) "%d %d %d" (fun t x y -> (t, x, y))))


let dist (_, x1, y1) (_, x2, y2) =
  (abs (x2 - x1)) + (abs (y2 - y1))

let dt (t1, _, _) (t2, _, _) =
  t2 - t1

let test formmer latter =
  let distance = dist formmer latter in
  let diffT = dt formmer latter in
  (diffT >= distance) && (distance mod 2 = diffT mod 2)
    

let main () =
  let n = read_int () in
  let locationList = readLocations n in
  let (satisfy, _) = List.fold_left
                       (fun (b, formmer) latter ->
                         ((b && (test formmer latter)), latter))
                       (true, (0, 0, 0))
                       locationList in
  let ans = if satisfy
            then "Yes"
            else "No" in
  (
    Printf.printf "%s" ans;
    print_newline ()
  )

let _ = main ()
