Soviet Kindergarden

아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

Mikhail Abramovich is a member of the CPSU since 1961, a doctor of sciences, a scientific atheist, loving dad and husband. He has a 10-year grandson Maxim. Maxim plays on his phone all day long instead of making science like his grandfather.

Maxim downloaded a new game "Snake 2022". The playing area of the "Snake 2022" is a rectangular table n×mn \times m. Rows are enumerated from 11 to nn, columns are enumerated from 11 to mm. Cell (r,c)(r,c) is in the intersection of a row rr and a column cc.

There is an apple in each cell of the table. When the head of the snake gets to the cell, the snake immediately eats an apple from this cell. The player gets w_ijw\_{ij} points when the snake eats an apple from the cell (i,j)(i,j).

The snake has a length of 11 at the beginning of the game. The snake's head starts at cell (a_r,a_c)(a\_r, a\_c). The snake immediately eats an apple from a cell (a_r,a_c)(a\_r, a\_c). The game ends when the snake's head gets to the cell (b_r,b_c)(b\_r, b\_c).

The move in the game is moving the snake's head to any of the neighboring cells, in which there is no snake yet. On each move the snake eats an apple and increases its length by 11. The set of cells occupied by the snake remains the same, plus the cell in which the snake's head appears in the current move. The move of the snake is described by one symbol: "U" to move up, from (r,c)(r, c) to (r1,c)(r-1, c); "D" to move down, from (r,c)(r, c) to (r+1,c)(r+1, c); "L" to move left, from (r,c)(r, c) to (r,c1)(r, c-1); "R" to move right, from (r,c)(r, c) to (r,c+1)(r, c+1).

Let WW be the total cost of apples on the whole table. The player wins if he gets strictly more than 12W\frac12 W points. To simplify the game, it is guaranteed that any apple brings strictly fewer points than the total cost of apples in cells (a_r,a_c)(a\_r, a\_c) and (b_r,b_c)(b\_r, b\_c).

"Snake 2022" is too difficult for Maxim, he can't win. He asked his grandfather for help. Mikhail Abramovich told Maxim the story of how in his youth the same problem was solved by an ordinary Soviet kindergartner.

You play the role of this kindergartner. Your task is to present a winning strategy for each configuration of the playing field from the tests.

입력

The first line of the input contains a single integer tt --- a number of the tests.

Each test is described in the following format. The first line contains six integers nn, mm, a_ra\_r, a_ca\_c, b_rb\_r, b_cb\_c --- the size of the table, coordinates of the start and finish cell (2n,m50002 \leq n, m \leq 5000, 1a_r,b_rn1 \leq a\_r, b\_r \leq n, 1a_c,b_cm1 \leq a\_c, b\_c \leq m, the start and the finish cells are different). The sum nmn \cdot m for all tests in one set of input data does not exceed 10610^6.

The next nn lines contain the costs of the apples in the table cells. The line ii contains integers w_i1,w_i2,,w_imw\_{i1}, w\_{i2}, \ldots , w\_{im} (1w_ij1091 \leq w\_{ij} \leq 10^9. It is guaranteed that for any 1in1 \leq i \leq n and 1jm1 \leq j \leq m inequality w_ij<w_a_ra_c+w_b_rb_cw\_{ij} < w\_{a\_ra\_c} + w\_{b\_rb\_c} is satisfied).

출력

Output a line containing symbols "U", "D", "L", "R" for each test case --- the sequence of the snake's moves, in which its head starts in the cell (a_r,a_c)(a\_r, a\_c), ends in the cell (b_r,b_c)(b\_r, b\_c), does not visit cells already occupied by the snake, and gets more than 12W\frac12 W points.