a = int(input()) if a >= 0 and a <= 9: print("GOOD") else: print("bad")