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