Maze#4250

Maze

1 second
64 megabytes
Easy

The robot is trapped in maze! The maze consists of four kinds of grids:

Now we send some command to the robot, "L", "R", "U", "D" represent that the robot make one move to left, right, up or down respectively. Help us to report the state of the robot.

Input

The first line contains a single integer , indicating the number of test cases. Each test case begins with one integer (1 \le N \le 50), indicating the size of the maze. The following lines are strings whose length is also , indicating the maze. Then follows an integer (1 \le Q \le 100), indicating the number of queries. The following lines contain strings with only "L", "R", "U", "D", indicating the commands, whose lengths are less than .

Output

For each query, output a single line:

I get there! - if the robot can reach the destination after executing the command, you should notice reaching the destination before the command ends is also included in this situation.

I have no idea! - if the robot still couldn't reach the destination after executing the command.

I am dizzy! - if the robot was knocked by the block while executing the command.

I am out! - if the robot was out of the boundary while executing the command.

Examples

Example 1

Loading
Loading