import java.util.*;
public class Main {

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

} import java.util.*; util.* java public class Main {

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

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

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

} public class Main {

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

} Main
import java.util.*;
public class Main {

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

}
