import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner teclado = new Scanner(System.in);
		String P = teclado.nextLine();
		int S[] = new int[4];
		for (int x = 0; x < 4; x++) {
			S[x] = P.charAt(x);
		}
			if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3]) {
				System.out.println("Bad");
			}
			
			else {
				System.out.println("Good");
			}
		
		
		teclado.close();

	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner teclado = new Scanner(System.in);
		String P = teclado.nextLine();
		int S[] = new int[4];
		for (int x = 0; x < 4; x++) {
			S[x] = P.charAt(x);
		}
			if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3]) {
				System.out.println("Bad");
			}
			
			else {
				System.out.println("Good");
			}
		
		
		teclado.close();

	}

} Main public static void main(String[] args) {
		Scanner teclado = new Scanner(System.in);
		String P = teclado.nextLine();
		int S[] = new int[4];
		for (int x = 0; x < 4; x++) {
			S[x] = P.charAt(x);
		}
			if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3]) {
				System.out.println("Bad");
			}
			
			else {
				System.out.println("Good");
			}
		
		
		teclado.close();

	} main {
		Scanner teclado = new Scanner(System.in);
		String P = teclado.nextLine();
		int S[] = new int[4];
		for (int x = 0; x < 4; x++) {
			S[x] = P.charAt(x);
		}
			if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3]) {
				System.out.println("Bad");
			}
			
			else {
				System.out.println("Good");
			}
		
		
		teclado.close();

	} Scanner teclado = new Scanner(System.in); teclado new Scanner(System.in) String P = teclado.nextLine(); P teclado.nextLine() teclado.nextLine teclado int S[] = new int[4]; S new int[4] 4 for (int x = 0; x < 4; x++) {
			S[x] = P.charAt(x);
		} int x = 0; int x = 0; x 0 x < 4 x 4 x++ x++ x {
			S[x] = P.charAt(x);
		} {
			S[x] = P.charAt(x);
		} S[x] = P.charAt(x) S[x] S x P.charAt(x) P.charAt P x if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3]) {
				System.out.println("Bad");
			}
			
			else {
				System.out.println("Good");
			} S[0] == S[1] || S[1] == S[2] || S[2] == S[3] S[0] == S[1] || S[1] == S[2] || S[2] == S[3] S[0] == S[1] S[0] S 0 S[1] S 1 S[1] == S[2] S[1] S 1 S[2] S 2 S[2] == S[3] S[2] S 2 S[3] S 3 {
				System.out.println("Bad");
			} System.out.println("Bad") System.out.println System.out System System.out "Bad" {
				System.out.println("Good");
			} System.out.println("Good") System.out.println System.out System System.out "Good" teclado.close() teclado.close teclado String[] args args public class Main {
	public static void main(String[] args) {
		Scanner teclado = new Scanner(System.in);
		String P = teclado.nextLine();
		int S[] = new int[4];
		for (int x = 0; x < 4; x++) {
			S[x] = P.charAt(x);
		}
			if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3]) {
				System.out.println("Bad");
			}
			
			else {
				System.out.println("Good");
			}
		
		
		teclado.close();

	}

} public class Main {
	public static void main(String[] args) {
		Scanner teclado = new Scanner(System.in);
		String P = teclado.nextLine();
		int S[] = new int[4];
		for (int x = 0; x < 4; x++) {
			S[x] = P.charAt(x);
		}
			if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3]) {
				System.out.println("Bad");
			}
			
			else {
				System.out.println("Good");
			}
		
		
		teclado.close();

	}

} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner teclado = new Scanner(System.in);
		String P = teclado.nextLine();
		int S[] = new int[4];
		for (int x = 0; x < 4; x++) {
			S[x] = P.charAt(x);
		}
			if (S[0] == S[1] || S[1] == S[2] || S[2] == S[3]) {
				System.out.println("Bad");
			}
			
			else {
				System.out.println("Good");
			}
		
		
		teclado.close();

	}

}