#!/usr/bin/env python3

#!/usr/bin/env pypy3



import sys

sys.dont_write_bytecode = True

stdin = sys.stdin

input = stdin.readline

sys.setrecursionlimit(10000000)



#import numpy as np

#import scipy as sp



# Python 3 modules: https://docs.python.org/3/library/



import math, itertools, operator

from math import *

from math import factorial as fact

from operator import itemgetter, attrgetter

from itertools import permutations, combinations

from functools import reduce, lru_cache

# Use scipy for stats: https://docs.scipy.org/doc/scipy/reference/stats.html

# Before Python 3.5.  Import from math after it.

from fractions import gcd

from fractions import Fraction as Frac



inf = float('inf')



def lcm(a, b):

    return a * b // gcd(a,b)



def perm(a, b):

    import scipy.special

    return scipy.special.perm(a, b, exact = True)



def comb(a, b):

    import scipy.special

    return scipy.special.comb(a, b, exact = True)



def dfact(n):

    import scipy.special

    return scipy.special.factorial2(n, exact = True)



def prod(l):

    return reduce(operator.mul, l)



def input_ints(func = input, sep = None, conv = int):

    return list(map(conv, func().split(sep = sep)))



################################################################################





def main():

    #S, = list(map(int, input().split()))

    S = eval(input())

    for i in range(3):

        if S[i] == S[i+1]:

            print('Bad')

            return

    print('Good')





if __name__ == '__main__':

    main()

#!/usr/bin/env python3

#!/usr/bin/env pypy3



from math import *



def main():

    import sys

    sys.dont_write_bytecode = True

    sys.setrecursionlimit(10000000)

    from sys import stdin, stdout, stderr

    input = stdin.readline



    #import numpy as np

    #import scipy as sp



    # Python 3 modules: https://docs.python.org/3/library/



    import os

    import math, itertools, operator

    from math import factorial as fact

    from operator import itemgetter, attrgetter

    from itertools import permutations, combinations

    from functools import reduce, lru_cache

    # Use scipy for stats: https://docs.scipy.org/doc/scipy/reference/stats.html

    # Before Python 3.5.  Import from math after it.

    from fractions import gcd

    from fractions import Fraction as Frac



    inf = float('inf')



    def lcm(a, b):

        return a * b // gcd(a,b)



    def perm(a, b):

        import scipy.special

        return scipy.special.perm(a, b, exact = True)



    def comb(a, b):

        import scipy.special

        return scipy.special.comb(a, b, exact = True)



    def dfact(n):

        import scipy.special

        return scipy.special.factorial2(n, exact = True)



    def prod(l):

        return reduce(operator.mul, l)



    def input_ints(func = input, sep = None, conv = int):

        return list(map(conv, func().split(sep = sep)))



    if os.environ.get('GOROOT') is None:

        def dprint(*args, **kwargs):

            kwargs['file'] = sys.stderr

            import inspect

            frame = inspect.currentframe().f_back

            print('[' + os.path.basename(frame.f_code.co_filename)

                    + ':' + str(frame.f_lineno) + ']', *args, **kwargs)

    else:

        def dprint(*args, **kwargs):

            pass





    ############################################################################





    S = input()

    dprint(S)

    for i in range(len(S) - 1):

        dprint(S[i])

        if S[i] == S[i+1]:

            print('Bad')

            return

    print('Good')





if __name__ == '__main__':

    main()

#!/usr/bin/env python3
#!/usr/bin/env pypy3
import sys

sys.dont_write_bytecode = True
stdin = sys.stdin
input = stdin.readline
sys.setrecursionlimit(10000000)
# import numpy as np
# import scipy as sp
# Python 3 modules: https://docs.python.org/3/library/
import math, itertools, operator
from math import *
from math import factorial as fact
from operator import itemgetter, attrgetter
from itertools import permutations, combinations
from functools import reduce, lru_cache

# Use scipy for stats: https://docs.scipy.org/doc/scipy/reference/stats.html
# Before Python 3.5.  Import from math after it.
from fractions import gcd
from fractions import Fraction as Frac

inf = float("inf")


def lcm(a, b):
    return a * b // gcd(a, b)


def perm(a, b):
    import scipy.special

    return scipy.special.perm(a, b, exact=True)


def comb(a, b):
    import scipy.special

    return scipy.special.comb(a, b, exact=True)


def dfact(n):
    import scipy.special

    return scipy.special.factorial2(n, exact=True)


def prod(l):
    return reduce(operator.mul, l)


def input_ints(func=input, sep=None, conv=int):
    return list(map(conv, func().split(sep=sep)))


################################################################################
def main():
    # S, = list(map(int, input().split()))
    S = eval(input())
    for i in range(3):
        if S[i] == S[i + 1]:
            print("Bad")
            return
    print("Good")


if __name__ == "__main__":
    main()

#!/usr/bin/env python3
#!/usr/bin/env pypy3
from math import *


def main():
    import sys

    sys.dont_write_bytecode = True
    sys.setrecursionlimit(10000000)
    from sys import stdin, stdout, stderr

    input = stdin.readline
    # import numpy as np
    # import scipy as sp
    # Python 3 modules: https://docs.python.org/3/library/
    import os
    import math, itertools, operator
    from math import factorial as fact
    from operator import itemgetter, attrgetter
    from itertools import permutations, combinations
    from functools import reduce, lru_cache

    # Use scipy for stats: https://docs.scipy.org/doc/scipy/reference/stats.html
    # Before Python 3.5.  Import from math after it.
    from fractions import gcd
    from fractions import Fraction as Frac

    inf = float("inf")

    def lcm(a, b):
        return a * b // gcd(a, b)

    def perm(a, b):
        import scipy.special

        return scipy.special.perm(a, b, exact=True)

    def comb(a, b):
        import scipy.special

        return scipy.special.comb(a, b, exact=True)

    def dfact(n):
        import scipy.special

        return scipy.special.factorial2(n, exact=True)

    def prod(l):
        return reduce(operator.mul, l)

    def input_ints(func=input, sep=None, conv=int):
        return list(map(conv, func().split(sep=sep)))

    if os.environ.get("GOROOT") is None:

        def dprint(*args, **kwargs):
            kwargs["file"] = sys.stderr
            import inspect

            frame = inspect.currentframe().f_back
            print(
                "["
                + os.path.basename(frame.f_code.co_filename)
                + ":"
                + str(frame.f_lineno)
                + "]",
                *args,
                **kwargs
            )

    else:

        def dprint(*args, **kwargs):
            pass

    ############################################################################
    S = input()
    dprint(S)
    for i in range(len(S) - 1):
        dprint(S[i])
        if S[i] == S[i + 1]:
            print("Bad")
            return
    print("Good")


if __name__ == "__main__":
    main()

-import sys - -sys.dont_write_bytecode = True -stdin = sys.stdin -input = stdin.readline -sys.setrecursionlimit(10000000) -# import numpy as np -# import scipy as sp -# Python 3 modules: https://docs.python.org/3/library/ -import math, itertools, operator -from math import factorial as fact -from operator import itemgetter, attrgetter -from itertools import permutations, combinations -from functools import reduce, lru_cache - -# Use scipy for stats: https://docs.scipy.org/doc/scipy/reference/stats.html -# Before Python 3.5.  Import from math after it. -from fractions import gcd -from fractions import Fraction as Frac - -inf = float("inf") -def lcm(a, b): -    return a * b // gcd(a, b) +def main(): +    import sys +    sys.dont_write_bytecode = True +    sys.setrecursionlimit(10000000) +    from sys import stdin, stdout, stderr -def perm(a, b): -    import scipy.special +    input = stdin.readline +    # import numpy as np +    # import scipy as sp +    # Python 3 modules: https://docs.python.org/3/library/ +    import os +    import math, itertools, operator +    from math import factorial as fact +    from operator import itemgetter, attrgetter +    from itertools import permutations, combinations +    from functools import reduce, lru_cache -    return scipy.special.perm(a, b, exact=True) +    # Use scipy for stats: https://docs.scipy.org/doc/scipy/reference/stats.html +    # Before Python 3.5.  Import from math after it. +    from fractions import gcd +    from fractions import Fraction as Frac +    inf = float("inf") -def comb(a, b): -    import scipy.special +    def lcm(a, b): +        return a * b // gcd(a, b) -    return scipy.special.comb(a, b, exact=True) +    def perm(a, b): +        import scipy.special +        return scipy.special.perm(a, b, exact=True) -def dfact(n): -    import scipy.special +    def comb(a, b): +        import scipy.special -    return scipy.special.factorial2(n, exact=True) +        return scipy.special.comb(a, b, exact=True) +    def dfact(n): +        import scipy.special -def prod(l): -    return reduce(operator.mul, l) +        return scipy.special.factorial2(n, exact=True) +    def prod(l): +        return reduce(operator.mul, l) -def input_ints(func=input, sep=None, conv=int): -    return list(map(conv, func().split(sep=sep))) +    def input_ints(func=input, sep=None, conv=int): +        return list(map(conv, func().split(sep=sep))) +    if os.environ.get("GOROOT") is None: -################################################################################ -def main(): -    # S, = list(map(int, input().split())) -    S = eval(input()) -    for i in range(3): +        def dprint(*args, **kwargs): +            kwargs["file"] = sys.stderr +            import inspect + +            frame = inspect.currentframe().f_back +            print( +                "[" +                + os.path.basename(frame.f_code.co_filename) +                + ":" +                + str(frame.f_lineno) +                + "]", +                *args, +                **kwargs +            ) + +    else: + +        def dprint(*args, **kwargs): +            pass + +    ############################################################################ +    S = input() +    dprint(S) +    for i in range(len(S) - 1): +        dprint(S[i])