func readInts() -> [Int] {
    return readLine()!.split(separator: " ").map { Int($0)! }
}

func main() {
    let N = Int(readLine()!)!
    var (t, x, y) = (0, 0, 0)
    for _ in 1...N {
        let line = readInts()
        let t_ = line[0]
        let x_ = line[1]
        let y_ = line[2]
        let dt = t_ - t
        let dx = abs(x_ - x)
        let dy = abs(y_ - y)
        if dt < dx + dy {
            print("No")
            return
        }
        if t_ % 2 != (x_ + y_) % 2 {
            print("No")
            return
        }
        (t, x, y) = (t_, x_, y_)
    }
    print("Yes")
}

main()
