import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[4];
		String numStr = sc.next();

		String s = "Good";
		for (int i = 0; i < 3; i++) {
			if (numStr.charAt(i) == numStr.charAt(i + 1)) {
				s = "Bad";
				break;
			}
		}
		System.out.println(s);

	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[4];
		String numStr = sc.next();

		String s = "Good";
		for (int i = 0; i < 3; i++) {
			if (numStr.charAt(i) == numStr.charAt(i + 1)) {
				s = "Bad";
				break;
			}
		}
		System.out.println(s);

	}

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

		String s = "Good";
		for (int i = 0; i < 3; i++) {
			if (numStr.charAt(i) == numStr.charAt(i + 1)) {
				s = "Bad";
				break;
			}
		}
		System.out.println(s);

	} main {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[4];
		String numStr = sc.next();

		String s = "Good";
		for (int i = 0; i < 3; i++) {
			if (numStr.charAt(i) == numStr.charAt(i + 1)) {
				s = "Bad";
				break;
			}
		}
		System.out.println(s);

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[4];
		String numStr = sc.next();

		String s = "Good";
		for (int i = 0; i < 3; i++) {
			if (numStr.charAt(i) == numStr.charAt(i + 1)) {
				s = "Bad";
				break;
			}
		}
		System.out.println(s);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[4];
		String numStr = sc.next();

		String s = "Good";
		for (int i = 0; i < 3; i++) {
			if (numStr.charAt(i) == numStr.charAt(i + 1)) {
				s = "Bad";
				break;
			}
		}
		System.out.println(s);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] a = new int[4];
		String numStr = sc.next();

		String s = "Good";
		for (int i = 0; i < 3; i++) {
			if (numStr.charAt(i) == numStr.charAt(i + 1)) {
				s = "Bad";
				break;
			}
		}
		System.out.println(s);

	}

}
