import java.io.PrintWriter;
import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		String s = sc.next();
		char[] c = s.toCharArray();

		if(c[0]==c[1] || c[1]==c[2] || c[2]==c[3]){
			out.println("Bad");
		}else{
			out.println("Good");
		}

		out.flush();
	}
} import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		String s = sc.next();
		char[] c = s.toCharArray();

		if(c[0]==c[1] || c[1]==c[2] || c[2]==c[3]){
			out.println("Bad");
		}else{
			out.println("Good");
		}

		out.flush();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		String s = sc.next();
		char[] c = s.toCharArray();

		if(c[0]==c[1] || c[1]==c[2] || c[2]==c[3]){
			out.println("Bad");
		}else{
			out.println("Good");
		}

		out.flush();
	} main {
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		String s = sc.next();
		char[] c = s.toCharArray();

		if(c[0]==c[1] || c[1]==c[2] || c[2]==c[3]){
			out.println("Bad");
		}else{
			out.println("Good");
		}

		out.flush();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) String s = sc.next(); s sc.next() sc.next sc char[] c = s.toCharArray(); c s.toCharArray() s.toCharArray s if(c[0]==c[1] || c[1]==c[2] || c[2]==c[3]){
			out.println("Bad");
		}else{
			out.println("Good");
		} c[0]==c[1] || c[1]==c[2] || c[2]==c[3] c[0]==c[1] || c[1]==c[2] || c[2]==c[3] c[0]==c[1] c[0] c 0 c[1] c 1 c[1]==c[2] c[1] c 1 c[2] c 2 c[2]==c[3] c[2] c 2 c[3] c 3 {
			out.println("Bad");
		} out.println("Bad") out.println out "Bad" {
			out.println("Good");
		} out.println("Good") out.println out "Good" out.flush() out.flush out String[] args args
import java.io.PrintWriter;
import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		String s = sc.next();
		char[] c = s.toCharArray();

		if(c[0]==c[1] || c[1]==c[2] || c[2]==c[3]){
			out.println("Bad");
		}else{
			out.println("Good");
		}

		out.flush();
	}
}
