import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		String b = "Good";
		char a = 0;
		for(int i=0; i<S.length(); i++) {
			if(a == S.charAt(i)) {
				b = "Bad";
			}
			a = S.charAt(i);
		}
		System.out.println(b);
	}

} 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();
		sc.close();
		String b = "Good";
		char a = 0;
		for(int i=0; i<S.length(); i++) {
			if(a == S.charAt(i)) {
				b = "Bad";
			}
			a = S.charAt(i);
		}
		System.out.println(b);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		String b = "Good";
		char a = 0;
		for(int i=0; i<S.length(); i++) {
			if(a == S.charAt(i)) {
				b = "Bad";
			}
			a = S.charAt(i);
		}
		System.out.println(b);
	} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		String b = "Good";
		char a = 0;
		for(int i=0; i<S.length(); i++) {
			if(a == S.charAt(i)) {
				b = "Bad";
			}
			a = S.charAt(i);
		}
		System.out.println(b);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc sc.close() sc.close sc String b = "Good"; b "Good" char a = 0; a 0 for(int i=0; i<S.length(); i++) {
			if(a == S.charAt(i)) {
				b = "Bad";
			}
			a = S.charAt(i);
		} int i=0; int i=0; i 0 i<S.length() i S.length() S.length S i++ i++ i {
			if(a == S.charAt(i)) {
				b = "Bad";
			}
			a = S.charAt(i);
		} {
			if(a == S.charAt(i)) {
				b = "Bad";
			}
			a = S.charAt(i);
		} if(a == S.charAt(i)) {
				b = "Bad";
			} a == S.charAt(i) a S.charAt(i) S.charAt S i {
				b = "Bad";
			} b = "Bad" b "Bad" a = S.charAt(i) a S.charAt(i) S.charAt S i System.out.println(b) System.out.println System.out System System.out b String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		String b = "Good";
		char a = 0;
		for(int i=0; i<S.length(); i++) {
			if(a == S.charAt(i)) {
				b = "Bad";
			}
			a = S.charAt(i);
		}
		System.out.println(b);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		String b = "Good";
		char a = 0;
		for(int i=0; i<S.length(); i++) {
			if(a == S.charAt(i)) {
				b = "Bad";
			}
			a = S.charAt(i);
		}
		System.out.println(b);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		String b = "Good";
		char a = 0;
		for(int i=0; i<S.length(); i++) {
			if(a == S.charAt(i)) {
				b = "Bad";
			}
			a = S.charAt(i);
		}
		System.out.println(b);
	}

}
