#D12067. Elevator

    ID: 10034 Type: Default 2000ms 268MiB

Elevator

Elevator

problem

AOR Co., Ltd. is a N N story building. There is no basement floor. AOR Ika-chan is a squid, so she can go down the stairs, but not up.

I decided to install M M elevators in the building because it would be inconvenient if I couldn't climb upstairs. It takes time to install the elevator, and the i i th elevator will be installed the night after Di D_i and will be mobile on all floors above the Ai A_i floor and below the Bi B_i floor.

You were asked Q Q questions by AOR Ika-chan. The i i th question is, "Can I move from the Si S_i floor to the Ti T_i floor at noon Ei E_i days later?" The only means of transportation are stairs and elevators. In addition, the time required for movement shall be negligible.

input

N M Q N \ M \ Q D1 A1 B1 D_1 \ A_1 \ B_1  vdots \ vdots DM AM BM D_M \ A_M \ B_M E1 S1 T1 E_1 \ S_1 \ T_1  vdots \ vdots EQ SQ TQ E_Q \ S_Q \ T_Q

output

Print Yes or No on one line for each question. However, answer in the order in which they are asked. Also, output a line break at the end.

Example

Input

5 1 2 3 1 5 3 1 5 4 1 5

Output

No Yes

inputFormat

input

N M Q N \ M \ Q D1 A1 B1 D_1 \ A_1 \ B_1  vdots \ vdots DM AM BM D_M \ A_M \ B_M E1 S1 T1 E_1 \ S_1 \ T_1  vdots \ vdots EQ SQ TQ E_Q \ S_Q \ T_Q

outputFormat

output

Print Yes or No on one line for each question. However, answer in the order in which they are asked. Also, output a line break at the end.

Example

Input

5 1 2 3 1 5 3 1 5 4 1 5

Output

No Yes

样例

5 1 2
3 1 5
3 1 5
4 1 5
No

Yes

</p>