N=io.read("n")
local t={0}
local x={0}
local y={0}
for i=2,N+1 do
  t[i]=io.read("n")
  x[i]=io.read("n")
  y[i]=io.read("n")
end
local res="Yes"
for i=2,N+1 do 
  local k=t[i]-t[i-1]
  local s=math.abs(x[i]-x[i-1])+math.abs(y[i]-y[i-1])
  if  k<s or k%2~=s%2 then
    res="No"
    break
  end
end
print(res)