import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] code = sc.next().toCharArray();
		boolean good = true;
		for(int i=0; i<3; i++)
			if(code[i]==code[i+1])
				good = false;
		System.out.println(good ? "Good" : "Bad");
		
		sc.close();
	}
} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] code = sc.next().toCharArray();
		boolean good = true;
		for(int i=0; i<3; i++)
			if(code[i]==code[i+1])
				good = false;
		System.out.println(good ? "Good" : "Bad");
		
		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] code = sc.next().toCharArray();
		boolean good = true;
		for(int i=0; i<3; i++)
			if(code[i]==code[i+1])
				good = false;
		System.out.println(good ? "Good" : "Bad");
		
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		char[] code = sc.next().toCharArray();
		boolean good = true;
		for(int i=0; i<3; i++)
			if(code[i]==code[i+1])
				good = false;
		System.out.println(good ? "Good" : "Bad");
		
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] code = sc.next().toCharArray(); code sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc boolean good = true; good true for(int i=0; i<3; i++)
			if(code[i]==code[i+1])
				good = false; int i=0; int i=0; i 0 i<3 i 3 i++ i++ i if(code[i]==code[i+1])
				good = false; if(code[i]==code[i+1])
				good = false; code[i]==code[i+1] code[i] code i code[i+1] code i+1 i 1 good = false good false System.out.println(good ? "Good" : "Bad") System.out.println System.out System System.out good ? "Good" : "Bad" good "Good" "Bad" sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] code = sc.next().toCharArray();
		boolean good = true;
		for(int i=0; i<3; i++)
			if(code[i]==code[i+1])
				good = false;
		System.out.println(good ? "Good" : "Bad");
		
		sc.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] code = sc.next().toCharArray();
		boolean good = true;
		for(int i=0; i<3; i++)
			if(code[i]==code[i+1])
				good = false;
		System.out.println(good ? "Good" : "Bad");
		
		sc.close();
	}
} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] code = sc.next().toCharArray();
		boolean good = true;
		for(int i=0; i<3; i++)
			if(code[i]==code[i+1])
				good = false;
		System.out.println(good ? "Good" : "Bad");
		
		sc.close();
	}
}
