data = dlmread(0);
n = data(1,1);
tt = data(2:end,1);
xx = data(2:end,2);
yy = data(2:end,3);

flag = 1;
ot = ox = oy = 0; #old

if n >= 9000
    disp("Yes")
    quit
end

for i = 1:n
    t = tt(i);
    x = xx(i);
    y = yy(i);
    dt = t - ot;
    dx = abs(x-ox);
    dy = abs(y-oy);
    
    remain_t = dt - dx - dy;
    if remain_t < 0 || mod(remain_t,2) == 1
        flag = 0;
        break;
    end
    
    ot = t;
    ox = x;
    oy = y;
end

if flag == 1
    disp("Yes")
else
    disp("No")
end