import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String code_st =scan.next();
		int[] code = new int[4];
		code[0] = Integer.parseInt(code_st.substring(0, 1));
		for (int i = 1; i < 4; i++) {
			code[i] = Integer.parseInt(code_st.substring(i, i + 1));
			if (code[i - 1] == code[i]) {
				System.out.println("Bad");
				return;
			}
		}
		System.out.println("Good");
		return;
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String code_st =scan.next();
		int[] code = new int[4];
		code[0] = Integer.parseInt(code_st.substring(0, 1));
		for (int i = 1; i < 4; i++) {
			code[i] = Integer.parseInt(code_st.substring(i, i + 1));
			if (code[i - 1] == code[i]) {
				System.out.println("Bad");
				return;
			}
		}
		System.out.println("Good");
		return;
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String code_st =scan.next();
		int[] code = new int[4];
		code[0] = Integer.parseInt(code_st.substring(0, 1));
		for (int i = 1; i < 4; i++) {
			code[i] = Integer.parseInt(code_st.substring(i, i + 1));
			if (code[i - 1] == code[i]) {
				System.out.println("Bad");
				return;
			}
		}
		System.out.println("Good");
		return;
	} main {
		Scanner scan = new Scanner(System.in);
		String code_st =scan.next();
		int[] code = new int[4];
		code[0] = Integer.parseInt(code_st.substring(0, 1));
		for (int i = 1; i < 4; i++) {
			code[i] = Integer.parseInt(code_st.substring(i, i + 1));
			if (code[i - 1] == code[i]) {
				System.out.println("Bad");
				return;
			}
		}
		System.out.println("Good");
		return;
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String code_st =scan.next(); code_st scan.next() scan.next scan int[] code = new int[4]; code new int[4] 4 code[0] = Integer.parseInt(code_st.substring(0, 1)) code[0] code 0 Integer.parseInt(code_st.substring(0, 1)) Integer.parseInt Integer code_st.substring(0, 1) code_st.substring code_st 0 1 for (int i = 1; i < 4; i++) {
			code[i] = Integer.parseInt(code_st.substring(i, i + 1));
			if (code[i - 1] == code[i]) {
				System.out.println("Bad");
				return;
			}
		} int i = 1; int i = 1; i 1 i < 4 i 4 i++ i++ i {
			code[i] = Integer.parseInt(code_st.substring(i, i + 1));
			if (code[i - 1] == code[i]) {
				System.out.println("Bad");
				return;
			}
		} {
			code[i] = Integer.parseInt(code_st.substring(i, i + 1));
			if (code[i - 1] == code[i]) {
				System.out.println("Bad");
				return;
			}
		} code[i] = Integer.parseInt(code_st.substring(i, i + 1)) code[i] code i Integer.parseInt(code_st.substring(i, i + 1)) Integer.parseInt Integer code_st.substring(i, i + 1) code_st.substring code_st i i + 1 i 1 if (code[i - 1] == code[i]) {
				System.out.println("Bad");
				return;
			} code[i - 1] == code[i] code[i - 1] code i - 1 i 1 code[i] code i {
				System.out.println("Bad");
				return;
			} System.out.println("Bad") System.out.println System.out System System.out "Bad" return; System.out.println("Good") System.out.println System.out System System.out "Good" return; String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String code_st =scan.next();
		int[] code = new int[4];
		code[0] = Integer.parseInt(code_st.substring(0, 1));
		for (int i = 1; i < 4; i++) {
			code[i] = Integer.parseInt(code_st.substring(i, i + 1));
			if (code[i - 1] == code[i]) {
				System.out.println("Bad");
				return;
			}
		}
		System.out.println("Good");
		return;
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String code_st =scan.next();
		int[] code = new int[4];
		code[0] = Integer.parseInt(code_st.substring(0, 1));
		for (int i = 1; i < 4; i++) {
			code[i] = Integer.parseInt(code_st.substring(i, i + 1));
			if (code[i - 1] == code[i]) {
				System.out.println("Bad");
				return;
			}
		}
		System.out.println("Good");
		return;
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String code_st =scan.next();
		int[] code = new int[4];
		code[0] = Integer.parseInt(code_st.substring(0, 1));
		for (int i = 1; i < 4; i++) {
			code[i] = Integer.parseInt(code_st.substring(i, i + 1));
			if (code[i - 1] == code[i]) {
				System.out.println("Bad");
				return;
			}
		}
		System.out.println("Good");
		return;
	}
}
