import java.util.Scanner;

// A - Security
// https://atcoder.jp/contests/abc131/tasks/abc131_a
public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        char[] S = scanner.next().toCharArray();
        scanner.close();

        char oldC = S[0];

        for (int i = 1; i< S.length; i++) {
            if (oldC == S[i]) {
                System.out.println("Bad");
                return;
            }
            oldC = S[i];
        }

        System.out.println("Good");
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        char[] S = scanner.next().toCharArray();
        scanner.close();

        char oldC = S[0];

        for (int i = 1; i< S.length; i++) {
            if (oldC == S[i]) {
                System.out.println("Bad");
                return;
            }
            oldC = S[i];
        }

        System.out.println("Good");
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        char[] S = scanner.next().toCharArray();
        scanner.close();

        char oldC = S[0];

        for (int i = 1; i< S.length; i++) {
            if (oldC == S[i]) {
                System.out.println("Bad");
                return;
            }
            oldC = S[i];
        }

        System.out.println("Good");
    } main {
        Scanner scanner = new Scanner(System.in);
        char[] S = scanner.next().toCharArray();
        scanner.close();

        char oldC = S[0];

        for (int i = 1; i< S.length; i++) {
            if (oldC == S[i]) {
                System.out.println("Bad");
                return;
            }
            oldC = S[i];
        }

        System.out.println("Good");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) char[] S = scanner.next().toCharArray(); S scanner.next().toCharArray() scanner.next().toCharArray scanner.next() scanner.next scanner scanner.close() scanner.close scanner char oldC = S[0]; oldC S[0] S 0 for (int i = 1; i< S.length; i++) {
            if (oldC == S[i]) {
                System.out.println("Bad");
                return;
            }
            oldC = S[i];
        } int i = 1; int i = 1; i 1 i< S.length i S.length S S.length i++ i++ i {
            if (oldC == S[i]) {
                System.out.println("Bad");
                return;
            }
            oldC = S[i];
        } {
            if (oldC == S[i]) {
                System.out.println("Bad");
                return;
            }
            oldC = S[i];
        } if (oldC == S[i]) {
                System.out.println("Bad");
                return;
            } oldC == S[i] oldC S[i] S i {
                System.out.println("Bad");
                return;
            } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; oldC = S[i] oldC S[i] S i System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        char[] S = scanner.next().toCharArray();
        scanner.close();

        char oldC = S[0];

        for (int i = 1; i< S.length; i++) {
            if (oldC == S[i]) {
                System.out.println("Bad");
                return;
            }
            oldC = S[i];
        }

        System.out.println("Good");
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        char[] S = scanner.next().toCharArray();
        scanner.close();

        char oldC = S[0];

        for (int i = 1; i< S.length; i++) {
            if (oldC == S[i]) {
                System.out.println("Bad");
                return;
            }
            oldC = S[i];
        }

        System.out.println("Good");
    }
} Main
import java.util.Scanner;

// A - Security
// https://atcoder.jp/contests/abc131/tasks/abc131_a
public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        char[] S = scanner.next().toCharArray();
        scanner.close();

        char oldC = S[0];

        for (int i = 1; i< S.length; i++) {
            if (oldC == S[i]) {
                System.out.println("Bad");
                return;
            }
            oldC = S[i];
        }

        System.out.println("Good");
    }
}
