import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String sa = sc.nextLine();
		sc.close();
		char one = sa.charAt(0);
		char two = sa.charAt(1);
		char three = sa.charAt(2);
		char four = sa.charAt(3);
		if((one == two) ||(two == three) || (three == four)) {
			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 sa = sc.nextLine();
		sc.close();
		char one = sa.charAt(0);
		char two = sa.charAt(1);
		char three = sa.charAt(2);
		char four = sa.charAt(3);
		if((one == two) ||(two == three) || (three == four)) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String sa = sc.nextLine();
		sc.close();
		char one = sa.charAt(0);
		char two = sa.charAt(1);
		char three = sa.charAt(2);
		char four = sa.charAt(3);
		if((one == two) ||(two == three) || (three == four)) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String sa = sc.nextLine();
		sc.close();
		char one = sa.charAt(0);
		char two = sa.charAt(1);
		char three = sa.charAt(2);
		char four = sa.charAt(3);
		if((one == two) ||(two == three) || (three == four)) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String sa = sc.nextLine(); sa sc.nextLine() sc.nextLine sc sc.close() sc.close sc char one = sa.charAt(0); one sa.charAt(0) sa.charAt sa 0 char two = sa.charAt(1); two sa.charAt(1) sa.charAt sa 1 char three = sa.charAt(2); three sa.charAt(2) sa.charAt sa 2 char four = sa.charAt(3); four sa.charAt(3) sa.charAt sa 3 if((one == two) ||(two == three) || (three == four)) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		} (one == two) ||(two == three) || (three == four) (one == two) ||(two == three) || (three == four) (one == two) one two (two == three) two three (three == four) three four {
			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" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String sa = sc.nextLine();
		sc.close();
		char one = sa.charAt(0);
		char two = sa.charAt(1);
		char three = sa.charAt(2);
		char four = sa.charAt(3);
		if((one == two) ||(two == three) || (three == four)) {
			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 sa = sc.nextLine();
		sc.close();
		char one = sa.charAt(0);
		char two = sa.charAt(1);
		char three = sa.charAt(2);
		char four = sa.charAt(3);
		if((one == two) ||(two == three) || (three == four)) {
			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 sa = sc.nextLine();
		sc.close();
		char one = sa.charAt(0);
		char two = sa.charAt(1);
		char three = sa.charAt(2);
		char four = sa.charAt(3);
		if((one == two) ||(two == three) || (three == four)) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	}

}