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

    read*, n

    do i=1,n
        read*, t,x,y
        if (t < x+y .or. and(t,1) /= and(x+y,1)) then
            print*, 'No'
            stop
        end if
    end do

    print*, 'Yes'
end program Traveling