n = int(input())
a = []
for i in range(n):
    a.append(list(map(int, input().split())))
x = 0
y = 0


for i in range(len(a)):
  x_goal = a[i][1]
  y_goal = a[i][2]
  if i == 0:
    t = a[i][0]
    if y_goal >= 0:
      while y != y_goal:
        y += 1
        t -= 1
    else:
      while y != y_goal:
        y -= 1
        t -= 1
    for time0 in range(t):
      if x > x_goal:
        x -= 1
      else:
        x += 1
    if x == x_goal:
      continue
    else:
      continue
      
  elif i != 0:
    t = a[i][0]-a[i-1][0]
    t = a[i][0]-a[i-1][0]
  while y != y_goal:
    if y_goal > y:
      y += 1
      t -= 1
    elif y_goal < y:
      y -= 1
      t -= 1
    
    for time1 in range(t):
      if x > x_goal:
        x -= 1
      else:
        x += 1
if x == x_goal:
  print('Yes')
else:
  print('No')