class Main {
    public static void main(String[] args) {
        java.util.Scanner stdInputScanner = new java.util.Scanner(System.in);

        String str = stdInputScanner.next();
        String output;

        if (str.matches(".*(.)\\1.*")) {
            output = "Bad";
        } else {
            output = "Good";
        }

        System.out.println(output);
    }
} class Main {
    public static void main(String[] args) {
        java.util.Scanner stdInputScanner = new java.util.Scanner(System.in);

        String str = stdInputScanner.next();
        String output;

        if (str.matches(".*(.)\\1.*")) {
            output = "Bad";
        } else {
            output = "Good";
        }

        System.out.println(output);
    }
} Main public static void main(String[] args) {
        java.util.Scanner stdInputScanner = new java.util.Scanner(System.in);

        String str = stdInputScanner.next();
        String output;

        if (str.matches(".*(.)\\1.*")) {
            output = "Bad";
        } else {
            output = "Good";
        }

        System.out.println(output);
    } main {
        java.util.Scanner stdInputScanner = new java.util.Scanner(System.in);

        String str = stdInputScanner.next();
        String output;

        if (str.matches(".*(.)\\1.*")) {
            output = "Bad";
        } else {
            output = "Good";
        }

        System.out.println(output);
    } java.util.Scanner stdInputScanner = new java.util.Scanner(System.in); stdInputScanner new java.util.Scanner(System.in) String str = stdInputScanner.next(); str stdInputScanner.next() stdInputScanner.next stdInputScanner String output; output if (str.matches(".*(.)\\1.*")) {
            output = "Bad";
        } else {
            output = "Good";
        } str.matches(".*(.)\\1.*") str.matches str ".*(.)\\1.*" {
            output = "Bad";
        } output = "Bad" output "Bad" {
            output = "Good";
        } output = "Good" output "Good" System.out.println(output) System.out.println System.out System System.out output String[] args args
class Main {
    public static void main(String[] args) {
        java.util.Scanner stdInputScanner = new java.util.Scanner(System.in);

        String str = stdInputScanner.next();
        String output;

        if (str.matches(".*(.)\\1.*")) {
            output = "Bad";
        } else {
            output = "Good";
        }

        System.out.println(output);
    }
}