import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] li = sc.next().toCharArray();
		char ch = li[0];
		boolean check = false;
		for(int i = 1; i < 4; i++) {
			if(li[i] == ch) {
				check = true;
			}
			ch = li[i];
		}
		if(check == true) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] li = sc.next().toCharArray();
		char ch = li[0];
		boolean check = false;
		for(int i = 1; i < 4; i++) {
			if(li[i] == ch) {
				check = true;
			}
			ch = li[i];
		}
		if(check == true) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] li = sc.next().toCharArray();
		char ch = li[0];
		boolean check = false;
		for(int i = 1; i < 4; i++) {
			if(li[i] == ch) {
				check = true;
			}
			ch = li[i];
		}
		if(check == true) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		char[] li = sc.next().toCharArray();
		char ch = li[0];
		boolean check = false;
		for(int i = 1; i < 4; i++) {
			if(li[i] == ch) {
				check = true;
			}
			ch = li[i];
		}
		if(check == true) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] li = sc.next().toCharArray(); li sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc char ch = li[0]; ch li[0] li 0 boolean check = false; check false for(int i = 1; i < 4; i++) {
			if(li[i] == ch) {
				check = true;
			}
			ch = li[i];
		} int i = 1; int i = 1; i 1 i < 4 i 4 i++ i++ i {
			if(li[i] == ch) {
				check = true;
			}
			ch = li[i];
		} {
			if(li[i] == ch) {
				check = true;
			}
			ch = li[i];
		} if(li[i] == ch) {
				check = true;
			} li[i] == ch li[i] li i ch {
				check = true;
			} check = true check true ch = li[i] ch li[i] li i if(check == true) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		} check == true check true {
			System.out.println("Bad");
		} System.out.println("Bad") System.out.println System.out System System.out "Bad" {
			System.out.println("Good");
		} System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] li = sc.next().toCharArray();
		char ch = li[0];
		boolean check = false;
		for(int i = 1; i < 4; i++) {
			if(li[i] == ch) {
				check = true;
			}
			ch = li[i];
		}
		if(check == true) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] li = sc.next().toCharArray();
		char ch = li[0];
		boolean check = false;
		for(int i = 1; i < 4; i++) {
			if(li[i] == ch) {
				check = true;
			}
			ch = li[i];
		}
		if(check == true) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] li = sc.next().toCharArray();
		char ch = li[0];
		boolean check = false;
		for(int i = 1; i < 4; i++) {
			if(li[i] == ch) {
				check = true;
			}
			ch = li[i];
		}
		if(check == true) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	}
}