local N = io.read("*n")
local t, x, y = {}, {}, {}
t[0], x[0], y[0] = 0, 0, 0
for i = 1, N do
    t[i], x[i], y[i] = io.read("*n", "*n", "*n")
end

local is_impossible = false
local abs = math.abs
for i = 1, N do
    local delta_t = t[i] - t[i - 1]
    local delta_xy = abs(x[i] - x[i - 1]) + abs(y[i] - y[i - 1])

    if delta_t < delta_xy then
        is_impossible = true
        break
    end
    if delta_t%2 ~= delta_xy%2 then
        is_impossible = true
        break
    end
end

print(is_impossible and "No" or "Yes")