# ABC131A - Security

def main():

    s = eval(input())

    flg = all(s[i] != s[i + 1] for i in range(len(s) - 1))

    print(("Good" if flg else "Bad"))





if __name__ == "__main__":

    main()
# ABC131A - Security

def main():

    s = eval(input())

    if all(i != j for i, j in zip(s, s[1:])):

        print("Good")

    else:

        print("Bad")





if __name__ == "__main__":

    main()

# ABC131A - Security
def main():
    s = eval(input())
    flg = all(s[i] != s[i + 1] for i in range(len(s) - 1))
    print(("Good" if flg else "Bad"))


if __name__ == "__main__":
    main()

# ABC131A - Security
def main():
    s = eval(input())
    if all(i != j for i, j in zip(s, s[1:])):
        print("Good")
    else:
        print("Bad")


if __name__ == "__main__":
    main()

-    flg = all(s[i] != s[i + 1] for i in range(len(s) - 1)) -    print(("Good" if flg else "Bad")) +    if all(i != j for i, j in zip(s, s[1:])): +        print("Good") +    else: +        print("Bad")