import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String[] SArray = S.split("");
		if(SArray[0].equals(SArray[1])) {
			System.out.println("Bad");
			}else if(SArray[1].equals(SArray[2])) {
					System.out.println("Bad");
				}else if(SArray[2].equals(SArray[3])) {
					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);
		String S = sc.next();
		String[] SArray = S.split("");
		if(SArray[0].equals(SArray[1])) {
			System.out.println("Bad");
			}else if(SArray[1].equals(SArray[2])) {
					System.out.println("Bad");
				}else if(SArray[2].equals(SArray[3])) {
					System.out.println("Bad");
				}else {
					System.out.println("Good");
				}
		}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String[] SArray = S.split("");
		if(SArray[0].equals(SArray[1])) {
			System.out.println("Bad");
			}else if(SArray[1].equals(SArray[2])) {
					System.out.println("Bad");
				}else if(SArray[2].equals(SArray[3])) {
					System.out.println("Bad");
				}else {
					System.out.println("Good");
				}
		} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String[] SArray = S.split("");
		if(SArray[0].equals(SArray[1])) {
			System.out.println("Bad");
			}else if(SArray[1].equals(SArray[2])) {
					System.out.println("Bad");
				}else if(SArray[2].equals(SArray[3])) {
					System.out.println("Bad");
				}else {
					System.out.println("Good");
				}
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String[] SArray = S.split(""); SArray S.split("") S.split S "" if(SArray[0].equals(SArray[1])) {
			System.out.println("Bad");
			}else if(SArray[1].equals(SArray[2])) {
					System.out.println("Bad");
				}else if(SArray[2].equals(SArray[3])) {
					System.out.println("Bad");
				}else {
					System.out.println("Good");
				} SArray[0].equals(SArray[1]) SArray[0].equals SArray[0] SArray 0 SArray[1] SArray 1 {
			System.out.println("Bad");
			} System.out.println("Bad") System.out.println System.out System System.out "Bad" if(SArray[1].equals(SArray[2])) {
					System.out.println("Bad");
				}else if(SArray[2].equals(SArray[3])) {
					System.out.println("Bad");
				}else {
					System.out.println("Good");
				} SArray[1].equals(SArray[2]) SArray[1].equals SArray[1] SArray 1 SArray[2] SArray 2 {
					System.out.println("Bad");
				} System.out.println("Bad") System.out.println System.out System System.out "Bad" if(SArray[2].equals(SArray[3])) {
					System.out.println("Bad");
				}else {
					System.out.println("Good");
				} SArray[2].equals(SArray[3]) SArray[2].equals SArray[2] SArray 2 SArray[3] SArray 3 {
					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);
		String S = sc.next();
		String[] SArray = S.split("");
		if(SArray[0].equals(SArray[1])) {
			System.out.println("Bad");
			}else if(SArray[1].equals(SArray[2])) {
					System.out.println("Bad");
				}else if(SArray[2].equals(SArray[3])) {
					System.out.println("Bad");
				}else {
					System.out.println("Good");
				}
		}

} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String[] SArray = S.split("");
		if(SArray[0].equals(SArray[1])) {
			System.out.println("Bad");
			}else if(SArray[1].equals(SArray[2])) {
					System.out.println("Bad");
				}else if(SArray[2].equals(SArray[3])) {
					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);
		String S = sc.next();
		String[] SArray = S.split("");
		if(SArray[0].equals(SArray[1])) {
			System.out.println("Bad");
			}else if(SArray[1].equals(SArray[2])) {
					System.out.println("Bad");
				}else if(SArray[2].equals(SArray[3])) {
					System.out.println("Bad");
				}else {
					System.out.println("Good");
				}
		}

}