import java.util.Scanner;
public class Main {
	public static void main(String[]args){
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String array[] = S.split("");
		boolean ch = true;

		for(int x = 0;x < array.length - 1;x++) {
			if(array[x].equals(array[x + 1])) {
				ch = false;
				break;
			}
		}

		if(ch == true) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[]args){
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String array[] = S.split("");
		boolean ch = true;

		for(int x = 0;x < array.length - 1;x++) {
			if(array[x].equals(array[x + 1])) {
				ch = false;
				break;
			}
		}

		if(ch == true) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}
	}
} Main public static void main(String[]args){
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String array[] = S.split("");
		boolean ch = true;

		for(int x = 0;x < array.length - 1;x++) {
			if(array[x].equals(array[x + 1])) {
				ch = false;
				break;
			}
		}

		if(ch == true) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String array[] = S.split("");
		boolean ch = true;

		for(int x = 0;x < array.length - 1;x++) {
			if(array[x].equals(array[x + 1])) {
				ch = false;
				break;
			}
		}

		if(ch == true) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String array[] = S.split(""); array S.split("") S.split S "" boolean ch = true; ch true for(int x = 0;x < array.length - 1;x++) {
			if(array[x].equals(array[x + 1])) {
				ch = false;
				break;
			}
		} int x = 0; int x = 0; x 0 x < array.length - 1 x array.length - 1 array.length array array.length 1 x++ x++ x {
			if(array[x].equals(array[x + 1])) {
				ch = false;
				break;
			}
		} {
			if(array[x].equals(array[x + 1])) {
				ch = false;
				break;
			}
		} if(array[x].equals(array[x + 1])) {
				ch = false;
				break;
			} array[x].equals(array[x + 1]) array[x].equals array[x] array x array[x + 1] array x + 1 x 1 {
				ch = false;
				break;
			} ch = false ch false break; if(ch == true) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		} ch == true ch true {
			System.out.println("Good");
		} System.out.println("Good") System.out.println System.out System System.out "Good" {
			System.out.println("Bad");
		} System.out.println("Bad") System.out.println System.out System System.out "Bad" String[]args args public class Main {
	public static void main(String[]args){
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String array[] = S.split("");
		boolean ch = true;

		for(int x = 0;x < array.length - 1;x++) {
			if(array[x].equals(array[x + 1])) {
				ch = false;
				break;
			}
		}

		if(ch == true) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}
	}
} public class Main {
	public static void main(String[]args){
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String array[] = S.split("");
		boolean ch = true;

		for(int x = 0;x < array.length - 1;x++) {
			if(array[x].equals(array[x + 1])) {
				ch = false;
				break;
			}
		}

		if(ch == true) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[]args){
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String array[] = S.split("");
		boolean ch = true;

		for(int x = 0;x < array.length - 1;x++) {
			if(array[x].equals(array[x + 1])) {
				ch = false;
				break;
			}
		}

		if(ch == true) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}
	}
}
