import java.util.*;
import static java.lang.System.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] S =sc.next().toCharArray();
		char c = S[0];
		boolean flag = true;
		for(int i =1; i < S.length; i++) {
			if (S[i] == c) {
				flag = false;
				break;
			}
			c = S[i];
		}
		if(flag) out.println("Good");
		else out.println("Bad");
		
	}
} import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] S =sc.next().toCharArray();
		char c = S[0];
		boolean flag = true;
		for(int i =1; i < S.length; i++) {
			if (S[i] == c) {
				flag = false;
				break;
			}
			c = S[i];
		}
		if(flag) out.println("Good");
		else out.println("Bad");
		
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] S =sc.next().toCharArray();
		char c = S[0];
		boolean flag = true;
		for(int i =1; i < S.length; i++) {
			if (S[i] == c) {
				flag = false;
				break;
			}
			c = S[i];
		}
		if(flag) out.println("Good");
		else out.println("Bad");
		
	} main {
		Scanner sc = new Scanner(System.in);
		char[] S =sc.next().toCharArray();
		char c = S[0];
		boolean flag = true;
		for(int i =1; i < S.length; i++) {
			if (S[i] == c) {
				flag = false;
				break;
			}
			c = S[i];
		}
		if(flag) out.println("Good");
		else out.println("Bad");
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] S =sc.next().toCharArray(); S sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc char c = S[0]; c S[0] S 0 boolean flag = true; flag true for(int i =1; i < S.length; i++) {
			if (S[i] == c) {
				flag = false;
				break;
			}
			c = S[i];
		} int i =1; int i =1; i 1 i < S.length i S.length S S.length i++ i++ i {
			if (S[i] == c) {
				flag = false;
				break;
			}
			c = S[i];
		} {
			if (S[i] == c) {
				flag = false;
				break;
			}
			c = S[i];
		} if (S[i] == c) {
				flag = false;
				break;
			} S[i] == c S[i] S i c {
				flag = false;
				break;
			} flag = false flag false break; c = S[i] c S[i] S i if(flag) out.println("Good");
		else out.println("Bad"); flag out.println("Good") out.println out "Good" out.println("Bad") out.println out "Bad" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] S =sc.next().toCharArray();
		char c = S[0];
		boolean flag = true;
		for(int i =1; i < S.length; i++) {
			if (S[i] == c) {
				flag = false;
				break;
			}
			c = S[i];
		}
		if(flag) out.println("Good");
		else out.println("Bad");
		
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] S =sc.next().toCharArray();
		char c = S[0];
		boolean flag = true;
		for(int i =1; i < S.length; i++) {
			if (S[i] == c) {
				flag = false;
				break;
			}
			c = S[i];
		}
		if(flag) out.println("Good");
		else out.println("Bad");
		
	}
} Main
import java.util.*;
import static java.lang.System.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] S =sc.next().toCharArray();
		char c = S[0];
		boolean flag = true;
		for(int i =1; i < S.length; i++) {
			if (S[i] == c) {
				flag = false;
				break;
			}
			c = S[i];
		}
		if(flag) out.println("Good");
		else out.println("Bad");
		
	}
}