import java.io.*;
import java.util.*;

public class Main {

    public static void main(String[] args) throws IOException {
        InputStream inputStream = System.in;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(System.out);

        char[] n = in.next().toCharArray();
        for (int i = 1; i < n.length; i++) {
            if (n[i] == n[i - 1]) {
                out.println ("Bad");
                out.close();
                System.exit(0);
            }
        }
        out.println("Good");
        out.close();
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {

    public static void main(String[] args) throws IOException {
        InputStream inputStream = System.in;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(System.out);

        char[] n = in.next().toCharArray();
        for (int i = 1; i < n.length; i++) {
            if (n[i] == n[i - 1]) {
                out.println ("Bad");
                out.close();
                System.exit(0);
            }
        }
        out.println("Good");
        out.close();
    }
} Main public static void main(String[] args) throws IOException {
        InputStream inputStream = System.in;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(System.out);

        char[] n = in.next().toCharArray();
        for (int i = 1; i < n.length; i++) {
            if (n[i] == n[i - 1]) {
                out.println ("Bad");
                out.close();
                System.exit(0);
            }
        }
        out.println("Good");
        out.close();
    } main {
        InputStream inputStream = System.in;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(System.out);

        char[] n = in.next().toCharArray();
        for (int i = 1; i < n.length; i++) {
            if (n[i] == n[i - 1]) {
                out.println ("Bad");
                out.close();
                System.exit(0);
            }
        }
        out.println("Good");
        out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in Scanner in = new Scanner(inputStream); in new Scanner(inputStream) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) char[] n = in.next().toCharArray(); n in.next().toCharArray() in.next().toCharArray in.next() in.next in for (int i = 1; i < n.length; i++) {
            if (n[i] == n[i - 1]) {
                out.println ("Bad");
                out.close();
                System.exit(0);
            }
        } int i = 1; int i = 1; i 1 i < n.length i n.length n n.length i++ i++ i {
            if (n[i] == n[i - 1]) {
                out.println ("Bad");
                out.close();
                System.exit(0);
            }
        } {
            if (n[i] == n[i - 1]) {
                out.println ("Bad");
                out.close();
                System.exit(0);
            }
        } if (n[i] == n[i - 1]) {
                out.println ("Bad");
                out.close();
                System.exit(0);
            } n[i] == n[i - 1] n[i] n i n[i - 1] n i - 1 i 1 {
                out.println ("Bad");
                out.close();
                System.exit(0);
            } out.println ("Bad") out.println out "Bad" out.close() out.close out System.exit(0) System.exit System 0 out.println("Good") out.println out "Good" out.close() out.close out String[] args args public class Main {

    public static void main(String[] args) throws IOException {
        InputStream inputStream = System.in;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(System.out);

        char[] n = in.next().toCharArray();
        for (int i = 1; i < n.length; i++) {
            if (n[i] == n[i - 1]) {
                out.println ("Bad");
                out.close();
                System.exit(0);
            }
        }
        out.println("Good");
        out.close();
    }
} public class Main {

    public static void main(String[] args) throws IOException {
        InputStream inputStream = System.in;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(System.out);

        char[] n = in.next().toCharArray();
        for (int i = 1; i < n.length; i++) {
            if (n[i] == n[i - 1]) {
                out.println ("Bad");
                out.close();
                System.exit(0);
            }
        }
        out.println("Good");
        out.close();
    }
} Main
import java.io.*;
import java.util.*;

public class Main {

    public static void main(String[] args) throws IOException {
        InputStream inputStream = System.in;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(System.out);

        char[] n = in.next().toCharArray();
        for (int i = 1; i < n.length; i++) {
            if (n[i] == n[i - 1]) {
                out.println ("Bad");
                out.close();
                System.exit(0);
            }
        }
        out.println("Good");
        out.close();
    }
}