N=int(input())
x=[0]
y=[0]

for i in range(1,N):
  t,x_tmp,y_tmp=map(int,input().split())
  x.append(x_tmp)
  y.append(y_tmp)
  d=abs(x[i-1]-x[i])+abs(y[i-1]-y[i])
  if d>t or d%2!=t%2:
    print("No")
    flag=0
    break
  else:
    flag=1
    
if flag==1:
  print("Yes")