import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = 0;
		String secc = sc.next();
      	char[] sec = secc.toCharArray();
		for(int i = 1; i < 4; i++) {
			if (sec[i-1] == sec[i]) {
				count++;
            }
		}
		if (count == 0) {
			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);
		int count = 0;
		String secc = sc.next();
      	char[] sec = secc.toCharArray();
		for(int i = 1; i < 4; i++) {
			if (sec[i-1] == sec[i]) {
				count++;
            }
		}
		if (count == 0) {
			System.out.println("Good");
		}
		else {
			System.out.println("Bad");
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = 0;
		String secc = sc.next();
      	char[] sec = secc.toCharArray();
		for(int i = 1; i < 4; i++) {
			if (sec[i-1] == sec[i]) {
				count++;
            }
		}
		if (count == 0) {
			System.out.println("Good");
		}
		else {
			System.out.println("Bad");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int count = 0;
		String secc = sc.next();
      	char[] sec = secc.toCharArray();
		for(int i = 1; i < 4; i++) {
			if (sec[i-1] == sec[i]) {
				count++;
            }
		}
		if (count == 0) {
			System.out.println("Good");
		}
		else {
			System.out.println("Bad");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count = 0; count 0 String secc = sc.next(); secc sc.next() sc.next sc char[] sec = secc.toCharArray(); sec secc.toCharArray() secc.toCharArray secc for(int i = 1; i < 4; i++) {
			if (sec[i-1] == sec[i]) {
				count++;
            }
		} int i = 1; int i = 1; i 1 i < 4 i 4 i++ i++ i {
			if (sec[i-1] == sec[i]) {
				count++;
            }
		} {
			if (sec[i-1] == sec[i]) {
				count++;
            }
		} if (sec[i-1] == sec[i]) {
				count++;
            } sec[i-1] == sec[i] sec[i-1] sec i-1 i 1 sec[i] sec i {
				count++;
            } count++ count if (count == 0) {
			System.out.println("Good");
		}
		else {
			System.out.println("Bad");
		} count == 0 count 0 {
			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);
		int count = 0;
		String secc = sc.next();
      	char[] sec = secc.toCharArray();
		for(int i = 1; i < 4; i++) {
			if (sec[i-1] == sec[i]) {
				count++;
            }
		}
		if (count == 0) {
			System.out.println("Good");
		}
		else {
			System.out.println("Bad");
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = 0;
		String secc = sc.next();
      	char[] sec = secc.toCharArray();
		for(int i = 1; i < 4; i++) {
			if (sec[i-1] == sec[i]) {
				count++;
            }
		}
		if (count == 0) {
			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);
		int count = 0;
		String secc = sc.next();
      	char[] sec = secc.toCharArray();
		for(int i = 1; i < 4; i++) {
			if (sec[i-1] == sec[i]) {
				count++;
            }
		}
		if (count == 0) {
			System.out.println("Good");
		}
		else {
			System.out.println("Bad");
		}
	}
}