import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner s = new Scanner(System.in);

		String input = s.next();

		for (int i = 0; i < 3; i++) {

			char c = input.charAt(i);
			char c2 = input.charAt(i+1);

			if(c==c2) {
				System.out.println("Bad");
				return;
			}

		}
		System.out.println("Good");
	}

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

	public static void main(String[] args) {

		Scanner s = new Scanner(System.in);

		String input = s.next();

		for (int i = 0; i < 3; i++) {

			char c = input.charAt(i);
			char c2 = input.charAt(i+1);

			if(c==c2) {
				System.out.println("Bad");
				return;
			}

		}
		System.out.println("Good");
	}

} Main public static void main(String[] args) {

		Scanner s = new Scanner(System.in);

		String input = s.next();

		for (int i = 0; i < 3; i++) {

			char c = input.charAt(i);
			char c2 = input.charAt(i+1);

			if(c==c2) {
				System.out.println("Bad");
				return;
			}

		}
		System.out.println("Good");
	} main {

		Scanner s = new Scanner(System.in);

		String input = s.next();

		for (int i = 0; i < 3; i++) {

			char c = input.charAt(i);
			char c2 = input.charAt(i+1);

			if(c==c2) {
				System.out.println("Bad");
				return;
			}

		}
		System.out.println("Good");
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) String input = s.next(); input s.next() s.next s for (int i = 0; i < 3; i++) {

			char c = input.charAt(i);
			char c2 = input.charAt(i+1);

			if(c==c2) {
				System.out.println("Bad");
				return;
			}

		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {

			char c = input.charAt(i);
			char c2 = input.charAt(i+1);

			if(c==c2) {
				System.out.println("Bad");
				return;
			}

		} {

			char c = input.charAt(i);
			char c2 = input.charAt(i+1);

			if(c==c2) {
				System.out.println("Bad");
				return;
			}

		} char c = input.charAt(i); c input.charAt(i) input.charAt input i char c2 = input.charAt(i+1); c2 input.charAt(i+1) input.charAt input i+1 i 1 if(c==c2) {
				System.out.println("Bad");
				return;
			} c==c2 c c2 {
				System.out.println("Bad");
				return;
			} System.out.println("Bad") System.out.println System.out System System.out "Bad" return; 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 s = new Scanner(System.in);

		String input = s.next();

		for (int i = 0; i < 3; i++) {

			char c = input.charAt(i);
			char c2 = input.charAt(i+1);

			if(c==c2) {
				System.out.println("Bad");
				return;
			}

		}
		System.out.println("Good");
	}

} public class Main {

	public static void main(String[] args) {

		Scanner s = new Scanner(System.in);

		String input = s.next();

		for (int i = 0; i < 3; i++) {

			char c = input.charAt(i);
			char c2 = input.charAt(i+1);

			if(c==c2) {
				System.out.println("Bad");
				return;
			}

		}
		System.out.println("Good");
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner s = new Scanner(System.in);

		String input = s.next();

		for (int i = 0; i < 3; i++) {

			char c = input.charAt(i);
			char c2 = input.charAt(i+1);

			if(c==c2) {
				System.out.println("Bad");
				return;
			}

		}
		System.out.println("Good");
	}

}
