Problem L: The Tower

Your task is to write a program that reads some lines of command for the following game and simulates operations until the player reaches the game over. We call following 2-dimensional grid of m by n characters Tower. The objective of this game is to move blocks in the tower to climb to a goal block. In the following grid, the bottom line is the first row and the top one is the n-th row. The leftmost column is the first column and the rightmost one is the m-th column.

.................... (n=13 th row)
.....#.....G........
....##.....##.....##
...####...IIII...###
..####.....##.....##
...####B..####....##
....###....#33##..##
.....####...#33#3.##
.##CCCC#####2##.####
..#####..###.#...###
...###....###.....#1
....####..##.......#
S..###..#.####.....# (1st row)

Explanation of cell marks:

Explanation of relative positions:

123
4S5
678

In the following description, assume that left up is the position of 1, up(over S) is 2, right up is 3, left is 4, right is 5, left down is 6, down(under S) is 7, right down is 8 for S.

Movements of the player
The player must not go out of the tower. The outside of the tower is considered as space cells.

Automated operations after the player operation:
Automated operations occur in the following order. This repeats in this order as long as the cells of the tower are changed by this operations. After this operations, the player can do the next operation.

Conditions for game over:
After the movement of the player or the automated operations, the game is over when the one of next conditions is satisfied. These conditions are judged in the following order. Note that, the condition (E) should not be judged after the movement of the player.

Finally, show some examples.
Documents of commands will be give in the description of Input.

Example table
Movement or
Automated operation
BeforeAfterCommand
Move.#S
###
S#.
###
MOVETO 1
Climb...
3S#
S..
3.#
CLIMB LEFT
Get downS..
3.#
...
2S#
GETDOWN RIGHT
Push.#S#####..
###II.I.I.
.#S.####.#
###II.I.I.
PUSH RIGHT
Push.#SI...
###.###
.#S....
###.###
PUSH RIGHT
Push.#...S#
###.###
.....S.
###.###
PUSH RIGHT
Pull..S#####..
###.#.#.#.
.S#.####..
###.#.#.#.
PULL LEFT
Falling of the player.#S#
.#.#
.#.#
.#.#
.#.#
.#.#
.#.#
.#S#
-
Falling of blocks.###.
#...#
#...#
#...#
.#.#
.#.#.
#...#
#...#
#.#.#
.#.#
-

Input

Input consists of multiple datasets.
A dataset is given in the following format.

n m
Dn,1 Dn,2 ... Dn,m
Dn-1,1 Dn-1,2 ... Dn-1,m
...
D1,1 D1,2 ... D1,m
T
Command1
Command2
...
CommandT

Here, m, n is the width and height of the tower. Di,j(1≤in and 1≤jm) is a mark of the cell. The explanation of marks described above. Commandk(1≤kT) is the k-th player operation (movement). This is a string and one of following strings.

"MOVETO s"  means move to s-th column cell in the same row.
"PUSH RIGHT" means push right block(s).
"PUSH LEFT" means push left block(s).
"PULL RIGHT" means pull the left block to right.
"PULL LEFT" means pull the right block to left.
"GETDOWN RIGHT" means get down to right down.
"GETDOWN LEFT" means get down to left down.
"CLIMB RIGHT" means climb to the right block.
"CLIMB LEFT" means climb to the left block.

Some of commands are invalid. You must ignore these commands. And after game is over, the command input may continue in case. In this case, you must also ignore following commands. m=n=0 shows the end of input.

Constraints

3≤m≤50
3≤n≤50
Characters 'S' and 'G' will appear exactly once in the tower description.

Output

Each dataset, output a string that represents the result of the game in the following format.

Result

Here, Result is a string and one of the following strings (quotes for clarity).

Sample Input

8 8
........
........
....###.
...#.#.G
S#B...##
#ICII.I#
#..#.#.#
.#..#.#.
7
PUSH RIGHT
MOVETO 2
CLIMB RIGHT
CLIMB RIGHT
GETDOWN RIGHT
CLIMB RIGHT
GETDOWN RIGHT
8 8
........
........
........
...G....
S#B.....
#ICIIIII
#..#.#.#
.#..#.#.
4
PUSH RIGHT
MOVETO 2
CLIMB RIGHT
CLIMB RIGHT
8 8
........
....#.#.
.....#.G
...#..#.
S#B....#
#ICIII.#
#..#.#.#
.#..#.#.
8
PUSH RIGHT
MOVETO 2
CLIMB RIGHT
CLIMB RIGHT
CLIMB RIGHT
GETDOWN RIGHT
CLIMB RIGHT
GETDOWN RIGHT
0 0

Sample Output

Game Over : Death by Hole
Game Over : Cleared
Game Over : Death by Walking Goal