program probC
  implicit none
  integer*8,allocatable :: t(:),x(:),y(:)
  integer*8 N,i,del_x,del_y,del_t,del_min

  read(*,*) N
  allocate(t(N+1),x(N+1),y(N+1))
  t(0)=0
  x(0)=0
  y(0)=0
  do i=1,n
     read(*,*) t(i),x(i),y(i)
  end do
  
  do i=1,N
     del_t=t(i)-t(i-1)
     del_x=x(i)-x(i-1)
     del_y=y(i)-y(i-1)
     del_min=del_t-abs(del_x)+abs(del_y)
     select case(del_min)
     case(0:)
        write(*,*) 'No'
        stop
     end select
     select case(mod(del_min,2))
     case(1)
        write(*,*) 'No'
        stop
     end select
  end do

  write(*,*) 'Yes'
end program probC
