Towers
문제
Benson the Rabbit likes towers. There are cities numbered to , and city is located at a point with integer coordinates . No two cities are located at the same point. Benson wants to build towers in some of these cities such that the following conditions are satisfied:
- For any , there are at most two towers with -coordinate equal to .
- For any , there are at most two towers with -coordinate equal to .
- Each of the cities either has a tower built, or lies on the line segment between two towers with the same -coordinate or the same -coordinate. More formally, for a city located at , if there is no tower in that city, then there are two towers at coordinates , with c ≤ y ≤ d, or two towers at coordinates , with e ≤ x ≤ f.
Benson knows that it is always possible to build towers satisfying these conditions, but does not know how he should do so. Help Benson determine where he should build the towers.
입력
Your program must read from standard input.
The first line of the input contains one integer, , the number of cities.
In the next lines, the th line contains two integers , , which means city is located at the point .
출력
Your program must print to standard output.
Output one line containing a string of characters . should be if Benson should build a tower in city , and otherwise. The towers built should satisfy all the conditions.
If there are several solutions your program can output any one of them.
예제
예제 1
3 1 1 1 6 1 5
110
예제 2
6 1 1 1 2 2 1 2 2 3 1 3 2
110011
예제 3
8 1 13 2 13 7 27 7 13 7 2 2 27 7 4 4 13
10101101