import java.util.Scanner;

/**
 * Main2
 */
public class Main {

    public static void main(String[] args) {


        Scanner input = new Scanner(System.in);
        String[] output = input.nextLine().split("");

        for (int i = 0; i < output.length - 1; i++) {
            if (output[i].equals(output[i + 1])) {
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {


        Scanner input = new Scanner(System.in);
        String[] output = input.nextLine().split("");

        for (int i = 0; i < output.length - 1; i++) {
            if (output[i].equals(output[i + 1])) {
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    }
} Main public static void main(String[] args) {


        Scanner input = new Scanner(System.in);
        String[] output = input.nextLine().split("");

        for (int i = 0; i < output.length - 1; i++) {
            if (output[i].equals(output[i + 1])) {
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    } main {


        Scanner input = new Scanner(System.in);
        String[] output = input.nextLine().split("");

        for (int i = 0; i < output.length - 1; i++) {
            if (output[i].equals(output[i + 1])) {
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) String[] output = input.nextLine().split(""); output input.nextLine().split("") input.nextLine().split input.nextLine() input.nextLine input "" for (int i = 0; i < output.length - 1; i++) {
            if (output[i].equals(output[i + 1])) {
                System.out.println("Bad");
                System.exit(0);
            }
        } int i = 0; int i = 0; i 0 i < output.length - 1 i output.length - 1 output.length output output.length 1 i++ i++ i {
            if (output[i].equals(output[i + 1])) {
                System.out.println("Bad");
                System.exit(0);
            }
        } {
            if (output[i].equals(output[i + 1])) {
                System.out.println("Bad");
                System.exit(0);
            }
        } if (output[i].equals(output[i + 1])) {
                System.out.println("Bad");
                System.exit(0);
            } output[i].equals(output[i + 1]) output[i].equals output[i] output i output[i + 1] output i + 1 i 1 {
                System.out.println("Bad");
                System.exit(0);
            } System.out.println("Bad") System.out.println System.out System System.out "Bad" System.exit(0) System.exit System 0 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 input = new Scanner(System.in);
        String[] output = input.nextLine().split("");

        for (int i = 0; i < output.length - 1; i++) {
            if (output[i].equals(output[i + 1])) {
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    }
} public class Main {

    public static void main(String[] args) {


        Scanner input = new Scanner(System.in);
        String[] output = input.nextLine().split("");

        for (int i = 0; i < output.length - 1; i++) {
            if (output[i].equals(output[i + 1])) {
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    }
} Main
import java.util.Scanner;

/**
 * Main2
 */
public class Main {

    public static void main(String[] args) {


        Scanner input = new Scanner(System.in);
        String[] output = input.nextLine().split("");

        for (int i = 0; i < output.length - 1; i++) {
            if (output[i].equals(output[i + 1])) {
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    }
}