let get_int () = Scanf.scanf "%d " (fun v -> v)
let get_3_ints () = Scanf.scanf "%d %d %d " (fun u v w -> u,v,w)

let () =
  let n = get_int ()
  in let ar =
    Array.map 
    (fun _ -> get_3_ints ())
    (Array.make n (-1,-1,-1))
  in 
  let (t,_,_) = Array.fold_left (fun (t,x,y) (u,p,q) -> 
    let dist = abs (p-x) + abs (q-y)
    in let span = u-t
    in if t>=0 && dist <= span && span mod 2 = dist mod 2 then (u,p,q)
    else (-1,0,0)
  ) (0,0,0) ar
  in
  print_endline @@ if t>=0 then "Yes" else "No"