import static java.lang.System.*;
import java.util.*;

public class Main {

	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {

	String s = sc.next();
		int count =0;
		for (int i = 1; i < 4; i++) {
			if (s.charAt(i) == s.charAt(i - 1)) {
				System.out.println("Bad");
				count++;
				break;
			}
		}
		if(count==0) {
			System.out.println("Good");
		}

	}

} import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; import java.util.*; util.* java public class Main {

	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {

	String s = sc.next();
		int count =0;
		for (int i = 1; i < 4; i++) {
			if (s.charAt(i) == s.charAt(i - 1)) {
				System.out.println("Bad");
				count++;
				break;
			}
		}
		if(count==0) {
			System.out.println("Good");
		}

	}

} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {

	String s = sc.next();
		int count =0;
		for (int i = 1; i < 4; i++) {
			if (s.charAt(i) == s.charAt(i - 1)) {
				System.out.println("Bad");
				count++;
				break;
			}
		}
		if(count==0) {
			System.out.println("Good");
		}

	} main {

	String s = sc.next();
		int count =0;
		for (int i = 1; i < 4; i++) {
			if (s.charAt(i) == s.charAt(i - 1)) {
				System.out.println("Bad");
				count++;
				break;
			}
		}
		if(count==0) {
			System.out.println("Good");
		}

	} String s = sc.next(); s sc.next() sc.next sc int count =0; count 0 for (int i = 1; i < 4; i++) {
			if (s.charAt(i) == s.charAt(i - 1)) {
				System.out.println("Bad");
				count++;
				break;
			}
		} int i = 1; int i = 1; i 1 i < 4 i 4 i++ i++ i {
			if (s.charAt(i) == s.charAt(i - 1)) {
				System.out.println("Bad");
				count++;
				break;
			}
		} {
			if (s.charAt(i) == s.charAt(i - 1)) {
				System.out.println("Bad");
				count++;
				break;
			}
		} if (s.charAt(i) == s.charAt(i - 1)) {
				System.out.println("Bad");
				count++;
				break;
			} s.charAt(i) == s.charAt(i - 1) s.charAt(i) s.charAt s i s.charAt(i - 1) s.charAt s i - 1 i 1 {
				System.out.println("Bad");
				count++;
				break;
			} System.out.println("Bad") System.out.println System.out System System.out "Bad" count++ count break; if(count==0) {
			System.out.println("Good");
		} count==0 count 0 {
			System.out.println("Good");
		} System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args public class Main {

	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {

	String s = sc.next();
		int count =0;
		for (int i = 1; i < 4; i++) {
			if (s.charAt(i) == s.charAt(i - 1)) {
				System.out.println("Bad");
				count++;
				break;
			}
		}
		if(count==0) {
			System.out.println("Good");
		}

	}

} public class Main {

	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {

	String s = sc.next();
		int count =0;
		for (int i = 1; i < 4; i++) {
			if (s.charAt(i) == s.charAt(i - 1)) {
				System.out.println("Bad");
				count++;
				break;
			}
		}
		if(count==0) {
			System.out.println("Good");
		}

	}

} Main
import static java.lang.System.*;
import java.util.*;

public class Main {

	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {

	String s = sc.next();
		int count =0;
		for (int i = 1; i < 4; i++) {
			if (s.charAt(i) == s.charAt(i - 1)) {
				System.out.println("Bad");
				count++;
				break;
			}
		}
		if(count==0) {
			System.out.println("Good");
		}

	}

}
