#D12067. Elevator
Elevator
Elevator
problem
AOR Co., Ltd. is a 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 elevators in the building because it would be inconvenient if I couldn't climb upstairs. It takes time to install the elevator, and the th elevator will be installed the night after and will be mobile on all floors above the floor and below the floor.
You were asked questions by AOR Ika-chan. The th question is, "Can I move from the floor to the floor at noon days later?" The only means of transportation are stairs and elevators. In addition, the time required for movement shall be negligible.
input
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
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>