implicit none
integer:: n,i
integer,allocatable:: t(:),x(:),y(:),z(:),tremain(:)

read(*,*) n
allocate(t(n))
allocate(x(n))
allocate(y(n))
allocate(z(n))
allocate(tremain(n))
do i=1,n
read(*,*) t(i),x(i),y(i)
z(i)=x(i)+y(i)
end do

do i=1,n
if(t(i)==z(i))then
return
else
tremain(i)=t(i)-z(i)
endif
if(tremain(i)>0.and.mod(tremain(i),2)==0)then
return
else
write(*,*) 'No'
goto 100
endif
end do

write(*,*) 'Yes'

100 end