# ABC086-C

awk '
BEGIN {
    t = 0; x = 0; y = 0
    ans = "Yes"
}
(NF >= 3) {
    dt = $1 - t; dx = $2 - x; dy = $3 - y
    if (dx < 0) { dx = -dx }
    if (dy < 0) { dy = -dy }
    if (dx + dy > dt || (dx + dy) % 2 != dt % 2) {
        ans = "No"
        exit
    }
    t = $1; x = $2; y = $3
}
END { print ans }
'
