let N = Int(readLine()!)!
var ans = "Yes"
var (preT, preX, preY) = (0, 0, 0)
for _ in 0..<N {
  let input = readLine()!.characters.split(" ").map{Int(String($0))!}
  let (t, x, y) = (input[0], input[1], input[2])
  let (dt, dx, dy) = (t - preT, abs(x - preX), abs(y - preY))
  let overTime = dt - (dx + dy)
  if overTime < 0 || overTime % 2 > 0 {
    ans = "No"
  }
  (preT, preX, preY) = (t, x, y)
}
print(ans)