import java.util.Scanner;

public class Main {

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

		String ans = "Good" ;
		String S = scan.next();
		char[] str = S.toCharArray();

		for (int i = 0;i < 3;i++) {
			if (str[i] == str[i+1]) {
				ans = "Bad";
				break;
			}
		}

		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {

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

		String ans = "Good" ;
		String S = scan.next();
		char[] str = S.toCharArray();

		for (int i = 0;i < 3;i++) {
			if (str[i] == str[i+1]) {
				ans = "Bad";
				break;
			}
		}

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

		String ans = "Good" ;
		String S = scan.next();
		char[] str = S.toCharArray();

		for (int i = 0;i < 3;i++) {
			if (str[i] == str[i+1]) {
				ans = "Bad";
				break;
			}
		}

		System.out.println(ans);
	} main {
		Scanner scan = new Scanner(System.in);

		String ans = "Good" ;
		String S = scan.next();
		char[] str = S.toCharArray();

		for (int i = 0;i < 3;i++) {
			if (str[i] == str[i+1]) {
				ans = "Bad";
				break;
			}
		}

		System.out.println(ans);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String ans = "Good" ; ans "Good" String S = scan.next(); S scan.next() scan.next scan char[] str = S.toCharArray(); str S.toCharArray() S.toCharArray S for (int i = 0;i < 3;i++) {
			if (str[i] == str[i+1]) {
				ans = "Bad";
				break;
			}
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			if (str[i] == str[i+1]) {
				ans = "Bad";
				break;
			}
		} {
			if (str[i] == str[i+1]) {
				ans = "Bad";
				break;
			}
		} if (str[i] == str[i+1]) {
				ans = "Bad";
				break;
			} str[i] == str[i+1] str[i] str i str[i+1] str 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 String[] args args public class Main {

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

		String ans = "Good" ;
		String S = scan.next();
		char[] str = S.toCharArray();

		for (int i = 0;i < 3;i++) {
			if (str[i] == str[i+1]) {
				ans = "Bad";
				break;
			}
		}

		System.out.println(ans);
	}
} public class Main {

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

		String ans = "Good" ;
		String S = scan.next();
		char[] str = S.toCharArray();

		for (int i = 0;i < 3;i++) {
			if (str[i] == str[i+1]) {
				ans = "Bad";
				break;
			}
		}

		System.out.println(ans);
	}
} Main
import java.util.Scanner;

public class Main {

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

		String ans = "Good" ;
		String S = scan.next();
		char[] str = S.toCharArray();

		for (int i = 0;i < 3;i++) {
			if (str[i] == str[i+1]) {
				ans = "Bad";
				break;
			}
		}

		System.out.println(ans);
	}
}