There is a grid with $H$ horizontal rows and $W$ vertical columns. $(i, j)$ denotes the square at the $i$\-th row from the top and $j$\-th column from the left.
$N$ squares, $(r_1, c_1), (r_2, c_2), \ldots, (r_N, c_N)$, have walls.
Takahashi is initially at square $(r_\mathrm{s}, c_\mathrm{s})$.
$Q$ instructions are given to Takahashi. For $i = 1, 2, \ldots, Q$, the $i$\-th instruction is represented by a pair of a character $d_i$ and a positive integer $l_i$. $d_i$ is one of `L`, `R`, `U`, and `D`, representing the directions of left, right, up, and down, respectively.
Given the $i$\-th direction, Takahashi repeats the following action $l_i$ times:
> If a square without a wall is adjacent to the current square in the direction represented by $d_i$, move to that square; otherwise, do nothing.
For $i = 1, 2, \ldots, Q$, print the square where Takahashi will be after he follows the first $i$ instructions.
## Constraints
* $2 \leq H, W \leq 10^9$
* $1 \leq r_\mathrm{s} \leq H$
* $1 \leq c_\mathrm{s} \leq W$
* $0 \leq N \leq 2 \times 10^5$
* $1 \leq r_i \leq H$
* $1 \leq c_i \leq W$
* $i \neq j \Rightarrow (r_i, c_i) \neq (r_j, c_j)$
* $(r_\mathrm{s}, c_\mathrm{s}) \neq (r_i, c_i)$ for all $i = 1, 2, \ldots, N$.
* $1 \leq Q \leq 2 \times 10^5$
* $d_i$ is one of the characters `L`, `R`, `U`, and `D`.
* $1 \leq l_i \leq 10^9$
* All values in the input other than $d_i$ are integers.
## Input
The input is given from Standard Input in the following format:
$H$ $W$ $r_\mathrm{s}$ $c_\mathrm{s}$
$N$
$r_1$ $c_1$
$r_2$ $c_2$
$\vdots$
$r_N$ $c_N$
$Q$
$d_1$ $l_1$
$d_2$ $l_2$
$\vdots$
$d_Q$ $l_Q$
[samples]