Under construction

Still being built. Things may change

Block

Time limit1sMemory limit1024 MB

Summary
Given A unit squares, B dominoes, and C L-shaped trominoes, decide whether they tile a height-2 rectangle with no gaps and all tiles used.
Level

Medium4 of 10

Topics
Math, Greedy, Implementation, Brute force
Solved
No attempts yet

Problem

You are given AA tiles of the first kind, BB tiles of the second kind, and CC tiles of the third kind, as shown in the figure below. Write a program that prints Yes if you can build a rectangle of height 2, and No otherwise.

The finished rectangle must have no empty space, and you must use every tile you are given. Tiles cannot be rotated.

For example, with one 1×11\times 1 tile, three 2×12\times 1 tiles, and one L-shaped tile, you can build a rectangle of height 2 as in the figure below.


But with one 1×11\times 1 tile, two 2×12\times 1 tiles, and no L-shaped tile, you can never build a rectangle of height 2, as in the figure below.

Input

The first line contains an integer TT, the number of test cases.

Each of the next TT lines contains three integers AA, BB, CC. AA, BB, and CC are the numbers of 1×11\times 1 tiles, 2×12\times 1 tiles, and L-shaped tiles, respectively.

Output

For each test case, print the answer on its own line, for TT lines in total.

Constraints

  • 1≤T≤10001 \leq T \leq 1000
  • 0≤A,B,C≤1 000 000 0000 \leq A, B, C \leq 1\,000\,000\,000
  • 0<A+B+C0 < A + B + C

Examples1

  1. Example 1

    Input
    3
    1 3 1
    1 2 0
    4 4 0
    
    Expected output
    Yes
    No
    Yes