#d2705. 碰撞2
碰撞2
Collision 2
Problem Description
In the coordinate system there are people. The -th person is at position , and all positions are distinct.
We have a string of length consisting of L and R. R means the -th person faces right, and L means the -th person faces left.
Now everyone starts walking in the direction they face: facing right means increases, facing left means decreases.
For example, when $(X_1, Y_1) = (2, 3), (X_2, Y_2) = (1, 1), (X_3, Y_3) = (4, 1)$ and RRL, the movement of the people is as shown in the figure.

We call it a collision when two people walk toward each other and meet at one position. If the people can walk forever, will anyone collide?
Input Format
The first line contains an integer ;
The next lines each contain two integers and , the position of the -th person;
The last line contains a string of length consisting of L and R.
Output Format
If there will be a collision, output Yes; otherwise output No.
Sample Input 1
3
2 3
1 1
4 1
RRL
Sample Output 1
Yes
Sample Input 2
2
1 1
2 1
RR
Sample Output 2
No
Sample Input 3
10
1 3
1 4
0 0
0 2
0 4
3 1
2 4
4 2
4 4
3 3
RLRRRLRLRR
Sample Output 3
Yes
Constraints
For all data, , , .