      PROGRAM traveling
      IMPLICIT NONE
      INTEGER :: N
      INTEGER,ALLOCATABLE :: t(:), x(:),y(:)
      
      INTEGER :: i, dt, dx,dy, s
      LOGICAL :: flag = .TRUE.
      
      READ*,N
      N = N + 1
      ALLOCATE( t(N),x(N),y(N) )
      DO i = 2,N
        READ*,t(i),x(i),y(i)
      END DO
      t(1) = 0
      x(1) = 0
      y(1) = 0
      
      DO i = 1,N-1
        dt = t(i+1) - t(i)
        dx = abs( x(i+1)-x(i) )
        dy = abs( y(i+1)-y(i) )
        
        IF(dx+dy>dt)THEN
          flag = .false.
          EXIT
        END IF
        
        s = dy+dx -dt
        IF( mod(dx+dy,2)/=mod(dt,2) )THEN
          flag = .false.
          EXIT
        END IF
      END DO
      
      IF(flag)THEN
        print'(A)','Yes'
      ELSE
        print'(A)','No'
      END IF
      
      
      END PROGRAM