PROGRAMMING:terminator
###Task description

```
Yu Long, Wang yaozhang and some students from the dormitory came to a tavern at the weekend to talk about the hardships of leaving home, homesickness, tiredness of solving problems and the worry of being criticized.
```
![ Untitled. JPG] (~ / f5be0f-4235-4eeb-aaa6-99486f03aaa5. JPG)
```
While drinking, they played the wine order game. At that time, the situation and rules of the game were as follows:
(1) Yu Long in the first position, Wang yaozhang in the third position, a total of n (n > = 3) students sit around to form a circle.
(2) Each round of the game starts with Yu Long and counts x (any positive integer between 1 and 100). The next students count in the order of X + 1, x + 2 and X + 3, and continue to cycle.
(3) A classmate reported the number as a. if there is a number 7 in a, or a is a multiple of 7, or the sum of the numbers of a is a multiple of 7, the classmate will drink a glass of beer.
(4) Each round of the game, when someone has drunk 5 cups, the round of the game ends, the student is called "terminator".
```
###Input format:
```
The input is a number of lines, each representing a round of the game.
The first data n of each row represents the number of people participating in the game (3 < = n < = 15), and the second data represents the number of dragon counting from X (1 < = x < = 100).
```
###Output format:
```
The output is several lines, each line represents the result of a round of game.
There are three integers in each line, separated by one space. The first integer is how many glasses of beer everyone has drunk until the end of the game. The second integer is how many glasses of beer Wang yaozhang has drunk in the game. The third integer is the serial number of the student (Terminator) who has drunk five glasses of beer. If the terminator happens to be Wang yaozhang, the third integer will be output after one space, Then output "good!".
Tip: the number reported by everyone before the end of the game will not exceed 999.
```
###Input example:
```in
5 10
6 100
7 200
11 100
```
###Output example:
```out
13 5 3 GOOD!
18 1 1
10 1 4
26 3 6
```
###Input example:
```in
15 100
13 56
7 50
5 20
11 3
6 101
14 1
```
###Output example:
```out
27 2 13
36 3 4
19 3 7
12 5 3 GOOD!
40 4 8
18 4 6
21 2 7
```
answer:If there is no answer, please comment

```
Yu Long, Wang yaozhang and some students from the dormitory came to a tavern at the weekend to talk about the hardships of leaving home, homesickness, tiredness of solving problems and the worry of being criticized.
```
![ Untitled. JPG] (~ / f5be0f-4235-4eeb-aaa6-99486f03aaa5. JPG)
```
While drinking, they played the wine order game. At that time, the situation and rules of the game were as follows:
(1) Yu Long in the first position, Wang yaozhang in the third position, a total of n (n > = 3) students sit around to form a circle.
(2) Each round of the game starts with Yu Long and counts x (any positive integer between 1 and 100). The next students count in the order of X + 1, x + 2 and X + 3, and continue to cycle.
(3) A classmate reported the number as a. if there is a number 7 in a, or a is a multiple of 7, or the sum of the numbers of a is a multiple of 7, the classmate will drink a glass of beer.
(4) Each round of the game, when someone has drunk 5 cups, the round of the game ends, the student is called "terminator".
```
###Input format:
```
The input is a number of lines, each representing a round of the game.
The first data n of each row represents the number of people participating in the game (3 < = n < = 15), and the second data represents the number of dragon counting from X (1 < = x < = 100).
```
###Output format:
```
The output is several lines, each line represents the result of a round of game.
There are three integers in each line, separated by one space. The first integer is how many glasses of beer everyone has drunk until the end of the game. The second integer is how many glasses of beer Wang yaozhang has drunk in the game. The third integer is the serial number of the student (Terminator) who has drunk five glasses of beer. If the terminator happens to be Wang yaozhang, the third integer will be output after one space, Then output "good!".
Tip: the number reported by everyone before the end of the game will not exceed 999.
```
###Input example:
```in
5 10
6 100
7 200
11 100
```
###Output example:
```out
13 5 3 GOOD!
18 1 1
10 1 4
26 3 6
```
###Input example:
```in
15 100
13 56
7 50
5 20
11 3
6 101
14 1
```
###Output example:
```out
27 2 13
36 3 4
19 3 7
12 5 3 GOOD!
40 4 8
18 4 6
21 2 7
```
answer:If there is no answer, please comment