import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	Scanner str = new Scanner(System.in);

	String S = str.nextLine();
	String[] x = S.split("");
	int n = 0;

	for (int i = 0; i < x.length - 1; i++) {
	    if (x[i].compareTo(x[i + 1]) == 0) {
		n++;
	    }
	}

	if (n > 0) {
	    System.out.println("Bad");
	} else {
	    System.out.println("Good");
	}
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
	Scanner str = new Scanner(System.in);

	String S = str.nextLine();
	String[] x = S.split("");
	int n = 0;

	for (int i = 0; i < x.length - 1; i++) {
	    if (x[i].compareTo(x[i + 1]) == 0) {
		n++;
	    }
	}

	if (n > 0) {
	    System.out.println("Bad");
	} else {
	    System.out.println("Good");
	}
    }
} Main public static void main(String[] args) {
	Scanner str = new Scanner(System.in);

	String S = str.nextLine();
	String[] x = S.split("");
	int n = 0;

	for (int i = 0; i < x.length - 1; i++) {
	    if (x[i].compareTo(x[i + 1]) == 0) {
		n++;
	    }
	}

	if (n > 0) {
	    System.out.println("Bad");
	} else {
	    System.out.println("Good");
	}
    } main {
	Scanner str = new Scanner(System.in);

	String S = str.nextLine();
	String[] x = S.split("");
	int n = 0;

	for (int i = 0; i < x.length - 1; i++) {
	    if (x[i].compareTo(x[i + 1]) == 0) {
		n++;
	    }
	}

	if (n > 0) {
	    System.out.println("Bad");
	} else {
	    System.out.println("Good");
	}
    } Scanner str = new Scanner(System.in); str new Scanner(System.in) String S = str.nextLine(); S str.nextLine() str.nextLine str String[] x = S.split(""); x S.split("") S.split S "" int n = 0; n 0 for (int i = 0; i < x.length - 1; i++) {
	    if (x[i].compareTo(x[i + 1]) == 0) {
		n++;
	    }
	} int i = 0; int i = 0; i 0 i < x.length - 1 i x.length - 1 x.length x x.length 1 i++ i++ i {
	    if (x[i].compareTo(x[i + 1]) == 0) {
		n++;
	    }
	} {
	    if (x[i].compareTo(x[i + 1]) == 0) {
		n++;
	    }
	} if (x[i].compareTo(x[i + 1]) == 0) {
		n++;
	    } x[i].compareTo(x[i + 1]) == 0 x[i].compareTo(x[i + 1]) x[i].compareTo x[i] x i x[i + 1] x i + 1 i 1 0 {
		n++;
	    } n++ n if (n > 0) {
	    System.out.println("Bad");
	} else {
	    System.out.println("Good");
	} n > 0 n 0 {
	    System.out.println("Bad");
	} System.out.println("Bad") System.out.println System.out System System.out "Bad" {
	    System.out.println("Good");
	} 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 str = new Scanner(System.in);

	String S = str.nextLine();
	String[] x = S.split("");
	int n = 0;

	for (int i = 0; i < x.length - 1; i++) {
	    if (x[i].compareTo(x[i + 1]) == 0) {
		n++;
	    }
	}

	if (n > 0) {
	    System.out.println("Bad");
	} else {
	    System.out.println("Good");
	}
    }
} public class Main {

    public static void main(String[] args) {
	Scanner str = new Scanner(System.in);

	String S = str.nextLine();
	String[] x = S.split("");
	int n = 0;

	for (int i = 0; i < x.length - 1; i++) {
	    if (x[i].compareTo(x[i + 1]) == 0) {
		n++;
	    }
	}

	if (n > 0) {
	    System.out.println("Bad");
	} else {
	    System.out.println("Good");
	}
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	Scanner str = new Scanner(System.in);

	String S = str.nextLine();
	String[] x = S.split("");
	int n = 0;

	for (int i = 0; i < x.length - 1; i++) {
	    if (x[i].compareTo(x[i + 1]) == 0) {
		n++;
	    }
	}

	if (n > 0) {
	    System.out.println("Bad");
	} else {
	    System.out.println("Good");
	}
    }
}