import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] ch = sc.next().toCharArray();
		sc.close();

		String ans = "Good";
		for(int i = 0;i < ch.length-1;i++) {
			if(ch[i] == ch[i+1]) {
				ans = "Bad";
				break;
			}
		}
		System.out.println(ans);
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] ch = sc.next().toCharArray();
		sc.close();

		String ans = "Good";
		for(int i = 0;i < ch.length-1;i++) {
			if(ch[i] == ch[i+1]) {
				ans = "Bad";
				break;
			}
		}
		System.out.println(ans);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] ch = sc.next().toCharArray();
		sc.close();

		String ans = "Good";
		for(int i = 0;i < ch.length-1;i++) {
			if(ch[i] == ch[i+1]) {
				ans = "Bad";
				break;
			}
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		char[] ch = sc.next().toCharArray();
		sc.close();

		String ans = "Good";
		for(int i = 0;i < ch.length-1;i++) {
			if(ch[i] == ch[i+1]) {
				ans = "Bad";
				break;
			}
		}
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] ch = sc.next().toCharArray(); ch sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc sc.close() sc.close sc String ans = "Good"; ans "Good" for(int i = 0;i < ch.length-1;i++) {
			if(ch[i] == ch[i+1]) {
				ans = "Bad";
				break;
			}
		} int i = 0; int i = 0; i 0 i < ch.length-1 i ch.length-1 ch.length ch ch.length 1 i++ i++ i {
			if(ch[i] == ch[i+1]) {
				ans = "Bad";
				break;
			}
		} {
			if(ch[i] == ch[i+1]) {
				ans = "Bad";
				break;
			}
		} if(ch[i] == ch[i+1]) {
				ans = "Bad";
				break;
			} ch[i] == ch[i+1] ch[i] ch i ch[i+1] ch i+1 i 1 {
				ans = "Bad";
				break;
			} ans = "Bad" ans "Bad" break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] ch = sc.next().toCharArray();
		sc.close();

		String ans = "Good";
		for(int i = 0;i < ch.length-1;i++) {
			if(ch[i] == ch[i+1]) {
				ans = "Bad";
				break;
			}
		}
		System.out.println(ans);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] ch = sc.next().toCharArray();
		sc.close();

		String ans = "Good";
		for(int i = 0;i < ch.length-1;i++) {
			if(ch[i] == ch[i+1]) {
				ans = "Bad";
				break;
			}
		}
		System.out.println(ans);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] ch = sc.next().toCharArray();
		sc.close();

		String ans = "Good";
		for(int i = 0;i < ch.length-1;i++) {
			if(ch[i] == ch[i+1]) {
				ans = "Bad";
				break;
			}
		}
		System.out.println(ans);
	}

}