import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] nums = new char[4];
		nums = S.toCharArray();

		String ans = "Good";
		for (int i = 0; i < 3; i++) {
			if (nums[i] == nums[i + 1]) {
				ans = "Bad";
				break;
			}
		}
		System.out.println(ans);
		sc.close();
	}
} 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();
		char[] nums = new char[4];
		nums = S.toCharArray();

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

		String ans = "Good";
		for (int i = 0; i < 3; i++) {
			if (nums[i] == nums[i + 1]) {
				ans = "Bad";
				break;
			}
		}
		System.out.println(ans);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] nums = new char[4];
		nums = S.toCharArray();

		String ans = "Good";
		for (int i = 0; i < 3; i++) {
			if (nums[i] == nums[i + 1]) {
				ans = "Bad";
				break;
			}
		}
		System.out.println(ans);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc char[] nums = new char[4]; nums new char[4] 4 nums = S.toCharArray() nums S.toCharArray() S.toCharArray S String ans = "Good"; ans "Good" for (int i = 0; i < 3; i++) {
			if (nums[i] == nums[i + 1]) {
				ans = "Bad";
				break;
			}
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			if (nums[i] == nums[i + 1]) {
				ans = "Bad";
				break;
			}
		} {
			if (nums[i] == nums[i + 1]) {
				ans = "Bad";
				break;
			}
		} if (nums[i] == nums[i + 1]) {
				ans = "Bad";
				break;
			} nums[i] == nums[i + 1] nums[i] nums i nums[i + 1] nums i + 1 i 1 {
				ans = "Bad";
				break;
			} ans = "Bad" ans "Bad" break; System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] nums = new char[4];
		nums = S.toCharArray();

		String ans = "Good";
		for (int i = 0; i < 3; i++) {
			if (nums[i] == nums[i + 1]) {
				ans = "Bad";
				break;
			}
		}
		System.out.println(ans);
		sc.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] nums = new char[4];
		nums = S.toCharArray();

		String ans = "Good";
		for (int i = 0; i < 3; i++) {
			if (nums[i] == nums[i + 1]) {
				ans = "Bad";
				break;
			}
		}
		System.out.println(ans);
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		char[] nums = new char[4];
		nums = S.toCharArray();

		String ans = "Good";
		for (int i = 0; i < 3; i++) {
			if (nums[i] == nums[i + 1]) {
				ans = "Bad";
				break;
			}
		}
		System.out.println(ans);
		sc.close();
	}
}
