
import java.util.Scanner;

public class Main {

	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int[] s = new int[4];
		for(int i=0; i < 4;i++) {
			s[i] = n % 10;
			n /= 10;
		}

		String msg = "Good";
		for(int i = 0; i < 3; i++)
			if(s[i] == s[i+1])
				msg = "Bad";


		System.out.println(msg);
	}

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

	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int[] s = new int[4];
		for(int i=0; i < 4;i++) {
			s[i] = n % 10;
			n /= 10;
		}

		String msg = "Good";
		for(int i = 0; i < 3; i++)
			if(s[i] == s[i+1])
				msg = "Bad";


		System.out.println(msg);
	}

} Main public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int[] s = new int[4];
		for(int i=0; i < 4;i++) {
			s[i] = n % 10;
			n /= 10;
		}

		String msg = "Good";
		for(int i = 0; i < 3; i++)
			if(s[i] == s[i+1])
				msg = "Bad";


		System.out.println(msg);
	} main {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int[] s = new int[4];
		for(int i=0; i < 4;i++) {
			s[i] = n % 10;
			n /= 10;
		}

		String msg = "Good";
		for(int i = 0; i < 3; i++)
			if(s[i] == s[i+1])
				msg = "Bad";


		System.out.println(msg);
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in int[] s = new int[4]; s new int[4] 4 for(int i=0; i < 4;i++) {
			s[i] = n % 10;
			n /= 10;
		} int i=0; int i=0; i 0 i < 4 i 4 i++ i++ i {
			s[i] = n % 10;
			n /= 10;
		} {
			s[i] = n % 10;
			n /= 10;
		} s[i] = n % 10 s[i] s i n % 10 n 10 n /= 10 n 10 String msg = "Good"; msg "Good" for(int i = 0; i < 3; i++)
			if(s[i] == s[i+1])
				msg = "Bad"; int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i if(s[i] == s[i+1])
				msg = "Bad"; if(s[i] == s[i+1])
				msg = "Bad"; s[i] == s[i+1] s[i] s i s[i+1] s i+1 i 1 msg = "Bad" msg "Bad" System.out.println(msg) System.out.println System.out System System.out msg String[] args args public class Main {

	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int[] s = new int[4];
		for(int i=0; i < 4;i++) {
			s[i] = n % 10;
			n /= 10;
		}

		String msg = "Good";
		for(int i = 0; i < 3; i++)
			if(s[i] == s[i+1])
				msg = "Bad";


		System.out.println(msg);
	}

} public class Main {

	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int[] s = new int[4];
		for(int i=0; i < 4;i++) {
			s[i] = n % 10;
			n /= 10;
		}

		String msg = "Good";
		for(int i = 0; i < 3; i++)
			if(s[i] == s[i+1])
				msg = "Bad";


		System.out.println(msg);
	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int[] s = new int[4];
		for(int i=0; i < 4;i++) {
			s[i] = n % 10;
			n /= 10;
		}

		String msg = "Good";
		for(int i = 0; i < 3; i++)
			if(s[i] == s[i+1])
				msg = "Bad";


		System.out.println(msg);
	}

}
