import java.util.Scanner;

public class Main {

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

		String S = sc.next();
		String code = "Good";
		for (int i = 0; i < 3; i++) {
			if (S.charAt(i) == S.charAt(i + 1)) {
				code = "Bad";
			}
		}
		System.out.println(code);
	}

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

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

		String S = sc.next();
		String code = "Good";
		for (int i = 0; i < 3; i++) {
			if (S.charAt(i) == S.charAt(i + 1)) {
				code = "Bad";
			}
		}
		System.out.println(code);
	}

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

		String S = sc.next();
		String code = "Good";
		for (int i = 0; i < 3; i++) {
			if (S.charAt(i) == S.charAt(i + 1)) {
				code = "Bad";
			}
		}
		System.out.println(code);
	} main {
		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		String code = "Good";
		for (int i = 0; i < 3; i++) {
			if (S.charAt(i) == S.charAt(i + 1)) {
				code = "Bad";
			}
		}
		System.out.println(code);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String code = "Good"; code "Good" for (int i = 0; i < 3; i++) {
			if (S.charAt(i) == S.charAt(i + 1)) {
				code = "Bad";
			}
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			if (S.charAt(i) == S.charAt(i + 1)) {
				code = "Bad";
			}
		} {
			if (S.charAt(i) == S.charAt(i + 1)) {
				code = "Bad";
			}
		} if (S.charAt(i) == S.charAt(i + 1)) {
				code = "Bad";
			} S.charAt(i) == S.charAt(i + 1) S.charAt(i) S.charAt S i S.charAt(i + 1) S.charAt S i + 1 i 1 {
				code = "Bad";
			} code = "Bad" code "Bad" System.out.println(code) System.out.println System.out System System.out code String[] args args public class Main {

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

		String S = sc.next();
		String code = "Good";
		for (int i = 0; i < 3; i++) {
			if (S.charAt(i) == S.charAt(i + 1)) {
				code = "Bad";
			}
		}
		System.out.println(code);
	}

} public class Main {

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

		String S = sc.next();
		String code = "Good";
		for (int i = 0; i < 3; i++) {
			if (S.charAt(i) == S.charAt(i + 1)) {
				code = "Bad";
			}
		}
		System.out.println(code);
	}

} Main
import java.util.Scanner;

public class Main {

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

		String S = sc.next();
		String code = "Good";
		for (int i = 0; i < 3; i++) {
			if (S.charAt(i) == S.charAt(i + 1)) {
				code = "Bad";
			}
		}
		System.out.println(code);
	}

}