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[] = new String[4];

		sArray = S.split("");

		if (sArray[0].equals(sArray[1]) || sArray[1].equals(sArray[2]) || 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[] = new String[4];

		sArray = S.split("");

		if (sArray[0].equals(sArray[1]) || sArray[1].equals(sArray[2]) || 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[] = new String[4];

		sArray = S.split("");

		if (sArray[0].equals(sArray[1]) || sArray[1].equals(sArray[2]) || 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[] = new String[4];

		sArray = S.split("");

		if (sArray[0].equals(sArray[1]) || sArray[1].equals(sArray[2]) || 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[] = new String[4]; sArray new String[4] 4 sArray = S.split("") sArray S.split("") S.split S "" if (sArray[0].equals(sArray[1]) || sArray[1].equals(sArray[2]) || sArray[2].equals(sArray[3])) {
			System.out.println("Bad");
		} else {
			System.out.println("Good");
		} sArray[0].equals(sArray[1]) || sArray[1].equals(sArray[2]) || sArray[2].equals(sArray[3]) sArray[0].equals(sArray[1]) || sArray[1].equals(sArray[2]) || sArray[2].equals(sArray[3]) sArray[0].equals(sArray[1]) sArray[0].equals sArray[0] sArray 0 sArray[1] sArray 1 sArray[1].equals(sArray[2]) sArray[1].equals sArray[1] sArray 1 sArray[2] sArray 2 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[] = new String[4];

		sArray = S.split("");

		if (sArray[0].equals(sArray[1]) || sArray[1].equals(sArray[2]) || 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[] = new String[4];

		sArray = S.split("");

		if (sArray[0].equals(sArray[1]) || sArray[1].equals(sArray[2]) || 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[] = new String[4];

		sArray = S.split("");

		if (sArray[0].equals(sArray[1]) || sArray[1].equals(sArray[2]) || sArray[2].equals(sArray[3])) {
			System.out.println("Bad");
		} else {
			System.out.println("Good");
		}
	}
}
