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 dT % 2 != (dX + dY) % 2 {
            print("No")
            return
        }
        
        (t_, x_, y_) = (t, x, y)
    }
    
    print("Yes")
}

main()
