import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s=sc.next();
		//int n = sc.nextInt();
		//int m = sc.nextInt();
		//int k = sc.nextInt();
		long count=0;
		int[] array = new int[3];
		Arrays.sort(array);

		for(int i=0;i<3;i++) {
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))) {
				count=1;
				break;
			}
		}
		if(count==0) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

		//System.out.println(array[0]+array[1]);
	}
}

 import java.util.Arrays; Arrays java.util 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();
		//int n = sc.nextInt();
		//int m = sc.nextInt();
		//int k = sc.nextInt();
		long count=0;
		int[] array = new int[3];
		Arrays.sort(array);

		for(int i=0;i<3;i++) {
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))) {
				count=1;
				break;
			}
		}
		if(count==0) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

		//System.out.println(array[0]+array[1]);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s=sc.next();
		//int n = sc.nextInt();
		//int m = sc.nextInt();
		//int k = sc.nextInt();
		long count=0;
		int[] array = new int[3];
		Arrays.sort(array);

		for(int i=0;i<3;i++) {
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))) {
				count=1;
				break;
			}
		}
		if(count==0) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

		//System.out.println(array[0]+array[1]);
	} main {
		Scanner sc = new Scanner(System.in);
		String s=sc.next();
		//int n = sc.nextInt();
		//int m = sc.nextInt();
		//int k = sc.nextInt();
		long count=0;
		int[] array = new int[3];
		Arrays.sort(array);

		for(int i=0;i<3;i++) {
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))) {
				count=1;
				break;
			}
		}
		if(count==0) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

		//System.out.println(array[0]+array[1]);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s=sc.next(); s sc.next() sc.next sc long count=0; count 0 int[] array = new int[3]; array new int[3] 3 Arrays.sort(array) Arrays.sort Arrays array for(int i=0;i<3;i++) {
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))) {
				count=1;
				break;
			}
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))) {
				count=1;
				break;
			}
		} {
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))) {
				count=1;
				break;
			}
		} if(s.substring(i,i+1).equals(s.substring(i+1,i+2))) {
				count=1;
				break;
			} s.substring(i,i+1).equals(s.substring(i+1,i+2)) s.substring(i,i+1).equals s.substring(i,i+1) s.substring s i i+1 i 1 s.substring(i+1,i+2) s.substring s i+1 i 1 i+2 i 2 {
				count=1;
				break;
			} count=1 count 1 break; 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);
		String s=sc.next();
		//int n = sc.nextInt();
		//int m = sc.nextInt();
		//int k = sc.nextInt();
		long count=0;
		int[] array = new int[3];
		Arrays.sort(array);

		for(int i=0;i<3;i++) {
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))) {
				count=1;
				break;
			}
		}
		if(count==0) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

		//System.out.println(array[0]+array[1]);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s=sc.next();
		//int n = sc.nextInt();
		//int m = sc.nextInt();
		//int k = sc.nextInt();
		long count=0;
		int[] array = new int[3];
		Arrays.sort(array);

		for(int i=0;i<3;i++) {
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))) {
				count=1;
				break;
			}
		}
		if(count==0) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

		//System.out.println(array[0]+array[1]);
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s=sc.next();
		//int n = sc.nextInt();
		//int m = sc.nextInt();
		//int k = sc.nextInt();
		long count=0;
		int[] array = new int[3];
		Arrays.sort(array);

		for(int i=0;i<3;i++) {
			if(s.substring(i,i+1).equals(s.substring(i+1,i+2))) {
				count=1;
				break;
			}
		}
		if(count==0) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

		//System.out.println(array[0]+array[1]);
	}
}


