GL is making a new game called “Evil Resident”. This game contains $N$ chapters and the $i$-th chapter has $A_i$ evil residents initially.

GL wants to change the number of evil residents in certain chapters but also ensure the game has an increasing difficulty progression, that is the number of evil residents should be increasing throughout each chapter. Therefore, GL will perform $Q$ operations of the following types:

  • 1 L R X :
    If $X \ge 0$, $A_i$ is increased by $X$ for $L \le i \le R$.
    If $X \lt 0$, $A_i$ is decreased by $-X$ for $L \le i \le R$.

  • 2 : If $A_1 \lt A_2 \lt ... \lt A_N$, then output Good Game, otherwise output Bad Game.

Help GL perform the operations and report the outputs in order.

Input

The first line of input contains two integers, $N$ and $Q$.
The second line of input contains $N$ integers, where the $i$-th integer is $A_i$.
The following $Q$ lines of input each contains one of the operations described above.

Output

For each query of type 2, output Good Game if the requirement is satisfied, otherwise output Bad Game.

Subtasks

For all test cases:
$1 \le N, Q \le 10^5$
$0 \le |X|, A_i \le 10^9$
$1 \le L \le R \le N$
It is guaranteed that $A_i$ is always non-negative.

Subtask 1 (30 pts): $1 \le N, Q \le 1000$
Subtask 2 (30 pts): There are at most $10$ type 2 operations.
Subtask 3 (30 pts): For each query of type 1, $R - L + 1 \le 10$
Subtask 4 (10 pts): No additional constraints

Sample Test Cases

Input Output
5 6
1 2 3 4 5
2
1 1 3 1
2
1 4 5 2
1 2 3 1
2
Good Game
Bad Game
Good Game

Initially, the array $A$ is $[1, 2, 3, 4, 5]$. (1-indexed)
Query 1: Since array $A$ is ascending, you should output “Good Game”.
Query 2: Increase $A[1]$ to $A[3]$ by $1$. The array $A$ becomes $[2, 3, 4, 4, 5]$.
Query 3: Since there exists $A[3] \nless A[4]$, you should output “Bad Game”.
Query 4: Increase $A[4]$ to $A[5]$ by $2$. The array $A$ becomes $[2, 3, 4, 6, 7]$.
Query 5: Increase $A[2]$ to $A[3]$ by $1$. The array $A$ becomes $[2, 4, 5, 6, 7]$.
Query 6: Since array $A$ is ascending, you should output “Good Game”.

Click to copy.

Scoring: Per Subtask
Authored by wy23493
Appeared in WYHK 2026 Mini Contest 2