import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] sArray = S.toCharArray();
		String result = "Good";
		for (int i = 0; i < 3; i++) {
			if (sArray[i] == sArray[i + 1]) {
				result = "Bad";
			}
		}
		System.out.println(result);
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] sArray = S.toCharArray();
		String result = "Good";
		for (int i = 0; i < 3; i++) {
			if (sArray[i] == sArray[i + 1]) {
				result = "Bad";
			}
		}
		System.out.println(result);
		sc.close();
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] sArray = S.toCharArray();
		String result = "Good";
		for (int i = 0; i < 3; i++) {
			if (sArray[i] == sArray[i + 1]) {
				result = "Bad";
			}
		}
		System.out.println(result);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] sArray = S.toCharArray();
		String result = "Good";
		for (int i = 0; i < 3; i++) {
			if (sArray[i] == sArray[i + 1]) {
				result = "Bad";
			}
		}
		System.out.println(result);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc char[] sArray = S.toCharArray(); sArray S.toCharArray() S.toCharArray S String result = "Good"; result "Good" for (int i = 0; i < 3; i++) {
			if (sArray[i] == sArray[i + 1]) {
				result = "Bad";
			}
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			if (sArray[i] == sArray[i + 1]) {
				result = "Bad";
			}
		} {
			if (sArray[i] == sArray[i + 1]) {
				result = "Bad";
			}
		} if (sArray[i] == sArray[i + 1]) {
				result = "Bad";
			} sArray[i] == sArray[i + 1] sArray[i] sArray i sArray[i + 1] sArray i + 1 i 1 {
				result = "Bad";
			} result = "Bad" result "Bad" System.out.println(result) System.out.println System.out System System.out result sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] sArray = S.toCharArray();
		String result = "Good";
		for (int i = 0; i < 3; i++) {
			if (sArray[i] == sArray[i + 1]) {
				result = "Bad";
			}
		}
		System.out.println(result);
		sc.close();
	}
} public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] sArray = S.toCharArray();
		String result = "Good";
		for (int i = 0; i < 3; i++) {
			if (sArray[i] == sArray[i + 1]) {
				result = "Bad";
			}
		}
		System.out.println(result);
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] sArray = S.toCharArray();
		String result = "Good";
		for (int i = 0; i < 3; i++) {
			if (sArray[i] == sArray[i + 1]) {
				result = "Bad";
			}
		}
		System.out.println(result);
		sc.close();
	}
}