Andrew was playing Connect 4 with his friend Julian when a squirrel came up and challenged him to a duel. Secretly, it was on an information gathering mission to see how Earth's strategists fared against squirrel intellect. If Andrew lost, the squirrel nation would deem Earth a suitable place to invade. It turns out that squirrels are not actually native to Earth and are not as nice as they seem ...
Squirrel Connect 4, or Squirrnect 4, is slightly different compared to the conventional version of Connect 4: The board is customizable and can have any positive integer width
Connect 4 explanation
Two players alternately drop tokens down the columns of a
Constraints
Input Specification
The first line will contain a single integer
The next
Output Specification
Output bad
if the corresponding board dimensions are bad; otherwise, output good
.
Sample Input
5
1 1
22 13
3 3
7 1
2 4
Sample Output
bad
good
bad
good
good
Comments
Squirrels are something else.