import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);

		String[] getStr = sc.next().split("");
		
		int j = 0;

		for (int i = 0; i < 3; i++) {
			
			if (getStr[i].equals(getStr[i+1])) {

				System.out.println("Bad");
				break;			

			} else {			
				
				j++;	
				
				if (j == 3) {

					System.out.println("Good");		

				}

			}

		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String[] getStr = sc.next().split("");
		
		int j = 0;

		for (int i = 0; i < 3; i++) {
			
			if (getStr[i].equals(getStr[i+1])) {

				System.out.println("Bad");
				break;			

			} else {			
				
				j++;	
				
				if (j == 3) {

					System.out.println("Good");		

				}

			}

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

		Scanner sc = new Scanner(System.in);

		String[] getStr = sc.next().split("");
		
		int j = 0;

		for (int i = 0; i < 3; i++) {
			
			if (getStr[i].equals(getStr[i+1])) {

				System.out.println("Bad");
				break;			

			} else {			
				
				j++;	
				
				if (j == 3) {

					System.out.println("Good");		

				}

			}

		}
	} main {

		Scanner sc = new Scanner(System.in);

		String[] getStr = sc.next().split("");
		
		int j = 0;

		for (int i = 0; i < 3; i++) {
			
			if (getStr[i].equals(getStr[i+1])) {

				System.out.println("Bad");
				break;			

			} else {			
				
				j++;	
				
				if (j == 3) {

					System.out.println("Good");		

				}

			}

		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] getStr = sc.next().split(""); getStr sc.next().split("") sc.next().split sc.next() sc.next sc "" int j = 0; j 0 for (int i = 0; i < 3; i++) {
			
			if (getStr[i].equals(getStr[i+1])) {

				System.out.println("Bad");
				break;			

			} else {			
				
				j++;	
				
				if (j == 3) {

					System.out.println("Good");		

				}

			}

		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			
			if (getStr[i].equals(getStr[i+1])) {

				System.out.println("Bad");
				break;			

			} else {			
				
				j++;	
				
				if (j == 3) {

					System.out.println("Good");		

				}

			}

		} {
			
			if (getStr[i].equals(getStr[i+1])) {

				System.out.println("Bad");
				break;			

			} else {			
				
				j++;	
				
				if (j == 3) {

					System.out.println("Good");		

				}

			}

		} if (getStr[i].equals(getStr[i+1])) {

				System.out.println("Bad");
				break;			

			} else {			
				
				j++;	
				
				if (j == 3) {

					System.out.println("Good");		

				}

			} getStr[i].equals(getStr[i+1]) getStr[i].equals getStr[i] getStr i getStr[i+1] getStr i+1 i 1 {

				System.out.println("Bad");
				break;			

			} System.out.println("Bad") System.out.println System.out System System.out "Bad" break; {			
				
				j++;	
				
				if (j == 3) {

					System.out.println("Good");		

				}

			} j++ j if (j == 3) {

					System.out.println("Good");		

				} j == 3 j 3 {

					System.out.println("Good");		

				} 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 sc = new Scanner(System.in);

		String[] getStr = sc.next().split("");
		
		int j = 0;

		for (int i = 0; i < 3; i++) {
			
			if (getStr[i].equals(getStr[i+1])) {

				System.out.println("Bad");
				break;			

			} else {			
				
				j++;	
				
				if (j == 3) {

					System.out.println("Good");		

				}

			}

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

		Scanner sc = new Scanner(System.in);

		String[] getStr = sc.next().split("");
		
		int j = 0;

		for (int i = 0; i < 3; i++) {
			
			if (getStr[i].equals(getStr[i+1])) {

				System.out.println("Bad");
				break;			

			} else {			
				
				j++;	
				
				if (j == 3) {

					System.out.println("Good");		

				}

			}

		}
	}
} Main
import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);

		String[] getStr = sc.next().split("");
		
		int j = 0;

		for (int i = 0; i < 3; i++) {
			
			if (getStr[i].equals(getStr[i+1])) {

				System.out.println("Bad");
				break;			

			} else {			
				
				j++;	
				
				if (j == 3) {

					System.out.println("Good");		

				}

			}

		}
	}
}