PROGRAMMING:C language experiment - Nine Palace case
In the biography of the arched hero, Huang Rong once cracked the Jiugong grid. The formula is: Dai jiulu 1, left seven, right three, two four for shoulders, six eight for feet. Jiugong grid was first called Luoshu, and now it is also called the third-order magic square. The so-called Jiugong grid has nine grids, 1-9 and nine numbers are filled in, so that the sum of three numbers of each row, each column, two diagonals is equal. Now your task is to judge whether a given 3 * 3 matrix satisfies the condition of composing a nine palace lattice
###Input format:
The number of groups in the first row is t (1 < = T < = 10000), and then t groups of test data are input. Each group is a 3 * 3 integer matrix, and each matrix is preceded by a blank line
###Output format:
For each group of 3 * 3 matrices, if it satisfies the above definition of nine palace lattice, then "cheers!" is output Otherwise, "omyga!" is output
###Input example:
Here is a set of inputs. For example:
```in
two
2 9 4
7 5 3
6 1 8
1 2 3
4 5 6
7 8 9
```
###Output example:
The corresponding output is given here. For example:
```out
Cheers!
OmyGa!
```
answer:If there is no answer, please comment
###Input format:
The number of groups in the first row is t (1 < = T < = 10000), and then t groups of test data are input. Each group is a 3 * 3 integer matrix, and each matrix is preceded by a blank line
###Output format:
For each group of 3 * 3 matrices, if it satisfies the above definition of nine palace lattice, then "cheers!" is output Otherwise, "omyga!" is output
###Input example:
Here is a set of inputs. For example:
```in
two
2 9 4
7 5 3
6 1 8
1 2 3
4 5 6
7 8 9
```
###Output example:
The corresponding output is given here. For example:
```out
Cheers!
OmyGa!
```
answer:If there is no answer, please comment