program Traveling
    implicit none
    integer(4):: n,i
    integer(4),allocatable:: t(:),x(:),y(:),d(:)

    read*, n
    allocate(t(n),x(n),y(n),d(n))

    do i=1,n
        read*, t(i),x(i),y(i)
    end do

    d(:) = x(:)+y(:)


    do i=1,n
        if (t(i) < d(i) .or. (mod(t(i),2) /= mod(d(i),2))) then
            print*, 'No'
            stop
        end if
    end do

    print*, 'Yes'


end program Traveling