import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		char[] S = scan.next().toCharArray();
		boolean isGood = true;

		if(S[0] == S[1]) isGood = false;
		if(S[1] == S[2]) isGood = false;
		if(S[2] == S[3]) isGood = false;

		if(isGood) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		char[] S = scan.next().toCharArray();
		boolean isGood = true;

		if(S[0] == S[1]) isGood = false;
		if(S[1] == S[2]) isGood = false;
		if(S[2] == S[3]) isGood = false;

		if(isGood) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		char[] S = scan.next().toCharArray();
		boolean isGood = true;

		if(S[0] == S[1]) isGood = false;
		if(S[1] == S[2]) isGood = false;
		if(S[2] == S[3]) isGood = false;

		if(isGood) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

	} main {

		Scanner scan = new Scanner(System.in);

		char[] S = scan.next().toCharArray();
		boolean isGood = true;

		if(S[0] == S[1]) isGood = false;
		if(S[1] == S[2]) isGood = false;
		if(S[2] == S[3]) isGood = false;

		if(isGood) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) char[] S = scan.next().toCharArray(); S scan.next().toCharArray() scan.next().toCharArray scan.next() scan.next scan boolean isGood = true; isGood true if(S[0] == S[1]) isGood = false; S[0] == S[1] S[0] S 0 S[1] S 1 isGood = false isGood false if(S[1] == S[2]) isGood = false; S[1] == S[2] S[1] S 1 S[2] S 2 isGood = false isGood false if(S[2] == S[3]) isGood = false; S[2] == S[3] S[2] S 2 S[3] S 3 isGood = false isGood false if(isGood) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		} isGood {
			System.out.println("Good");
		} System.out.println("Good") System.out.println System.out System System.out "Good" {
			System.out.println("Bad");
		} System.out.println("Bad") System.out.println System.out System System.out "Bad" String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		char[] S = scan.next().toCharArray();
		boolean isGood = true;

		if(S[0] == S[1]) isGood = false;
		if(S[1] == S[2]) isGood = false;
		if(S[2] == S[3]) isGood = false;

		if(isGood) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

	}
} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		char[] S = scan.next().toCharArray();
		boolean isGood = true;

		if(S[0] == S[1]) isGood = false;
		if(S[1] == S[2]) isGood = false;
		if(S[2] == S[3]) isGood = false;

		if(isGood) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		char[] S = scan.next().toCharArray();
		boolean isGood = true;

		if(S[0] == S[1]) isGood = false;
		if(S[1] == S[2]) isGood = false;
		if(S[2] == S[3]) isGood = false;

		if(isGood) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

	}
}