n = int(input())

for _ in range(n):
    name = input()
    if name.count('g') + name.count('G') > name.count('b')+name.count('B'): print(name + " is GOOD")
    elif name.count('g') + name.count('G') < name.count('b')+name.count('B'): print(name+" is A BADDY")
    else: print(name + " is NEUTRAL")

e26f26424f33c3653a70bf5ba575480dd83d42ce
<mask token>

<mask token>
for _ in range(n):
    name = input()
    if name.count('g') + name.count('G') > name.count('b') + name.count('B'):
        print(name + ' is GOOD')
    elif name.count('g') + name.count('G') < name.count('b') + name.count('B'):
        print(name + ' is A BADDY')
    else:
        print(name + ' is NEUTRAL')

n = int(input())
for _ in range(n):
    name = input()
    if name.count('g') + name.count('G') > name.count('b') + name.count('B'):
        print(name + ' is GOOD')
    elif name.count('g') + name.count('G') < name.count('b') + name.count('B'):
        print(name + ' is A BADDY')
    else:
        print(name + ' is NEUTRAL')

n = int(input())

for _ in range(n):
    name = input()
    if name.count('g') + name.count('G') > name.count('b')+name.count('B'): print(name + " is GOOD")
    elif name.count('g') + name.count('G') < name.count('b')+name.count('B'): print(name+" is A BADDY")
    else: print(name + " is NEUTRAL")
