n,*l=list(map(int,open(0).read().split()));print(("YNeos"[any((i+j+k)%2+(i<j+k)for i,j,k in zip(*[iter([abs(i-j)for i,j in zip([0,0,0]+l,l)])]*3))::2]))
_,*l=list(map(int,open(0).read().split()));print(("YNeos"[any((t+x+y)%2+(t<x+y)for t,x,y in zip(*[iter(l)]*3))::2]))
n, *l = list(map(int, open(0).read().split()))
print(
    (
        "YNeos"[
            any(
                (i + j + k) % 2 + (i < j + k)
                for i, j, k in zip(
                    *[iter([abs(i - j) for i, j in zip([0, 0, 0] + l, l)])] * 3
                )
            ) :: 2
        ]
    )
)

_, *l = list(map(int, open(0).read().split()))
print(
    (
        "YNeos"[
            any((t + x + y) % 2 + (t < x + y) for t, x, y in zip(*[iter(l)] * 3)) :: 2
        ]
    )
)

-n, *l = list(map(int, open(0).read().split())) +_, *l = list(map(int, open(0).read().split())) -            any( -                (i + j + k) % 2 + (i < j + k) -                for i, j, k in zip( -                    *[iter([abs(i - j) for i, j in zip([0, 0, 0] + l, l)])] * 3 -                ) -            ) :: 2 +            any((t + x + y) % 2 + (t < x + y) for t, x, y in zip(*[iter(l)] * 3)) :: 2