import java.util.*;

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

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		boolean flag = true;
		for(int i = 1; i < S.length(); i++) {
			if(S.charAt(i - 1)==S.charAt(i)) {
				flag = false;
				break;
			}
		}
		System.out.println((flag)?"Good":"Bad");
	}
} import java.util.*; util.* java public class Main{
	public static void main(String args[]) {

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		boolean flag = true;
		for(int i = 1; i < S.length(); i++) {
			if(S.charAt(i - 1)==S.charAt(i)) {
				flag = false;
				break;
			}
		}
		System.out.println((flag)?"Good":"Bad");
	}
} Main public static void main(String args[]) {

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		boolean flag = true;
		for(int i = 1; i < S.length(); i++) {
			if(S.charAt(i - 1)==S.charAt(i)) {
				flag = false;
				break;
			}
		}
		System.out.println((flag)?"Good":"Bad");
	} main {

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		boolean flag = true;
		for(int i = 1; i < S.length(); i++) {
			if(S.charAt(i - 1)==S.charAt(i)) {
				flag = false;
				break;
			}
		}
		System.out.println((flag)?"Good":"Bad");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc boolean flag = true; flag true for(int i = 1; i < S.length(); i++) {
			if(S.charAt(i - 1)==S.charAt(i)) {
				flag = false;
				break;
			}
		} int i = 1; int i = 1; i 1 i < S.length() i S.length() S.length S i++ i++ i {
			if(S.charAt(i - 1)==S.charAt(i)) {
				flag = false;
				break;
			}
		} {
			if(S.charAt(i - 1)==S.charAt(i)) {
				flag = false;
				break;
			}
		} if(S.charAt(i - 1)==S.charAt(i)) {
				flag = false;
				break;
			} S.charAt(i - 1)==S.charAt(i) S.charAt(i - 1) S.charAt S i - 1 i 1 S.charAt(i) S.charAt S i {
				flag = false;
				break;
			} flag = false flag false break; System.out.println((flag)?"Good":"Bad") System.out.println System.out System System.out (flag)?"Good":"Bad" (flag) "Good" "Bad" String args[] args public class Main{
	public static void main(String args[]) {

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		boolean flag = true;
		for(int i = 1; i < S.length(); i++) {
			if(S.charAt(i - 1)==S.charAt(i)) {
				flag = false;
				break;
			}
		}
		System.out.println((flag)?"Good":"Bad");
	}
} public class Main{
	public static void main(String args[]) {

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		boolean flag = true;
		for(int i = 1; i < S.length(); i++) {
			if(S.charAt(i - 1)==S.charAt(i)) {
				flag = false;
				break;
			}
		}
		System.out.println((flag)?"Good":"Bad");
	}
} Main
import java.util.*;

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

		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		boolean flag = true;
		for(int i = 1; i < S.length(); i++) {
			if(S.charAt(i - 1)==S.charAt(i)) {
				flag = false;
				break;
			}
		}
		System.out.println((flag)?"Good":"Bad");
	}
}