n = gets.to_i
data = []
data += "0 0 0".split(' ').map(&:to_i)
while line = gets
  data += line.split(' ').map(&:to_i)
end
 
can = true
for i in 0..(n-1)
  dt = data[i+1][0] - data[i][0]
  dist = (data[i+1][1] - data[i+1][1]).abs + (data[i][2] - data[i][2]).abs
  can = false if dt < dist
  can = false if (dist % 2 != dt % 2)
end

if can; then puts "Yes"
else puts "No"
end