import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String S = sc.next();

		boolean hante = true;
		String code = "";
		for (int i = 0; i < S.length(); i++) {
			if (code.equals(String.valueOf(S.charAt(i))) && i != 0) {
				hante = false;
				break;
			}
			code = String.valueOf(S.charAt(i));
		}
		if (hante) {
			System.out.println("Good");
		} else {
			System.out.println("Bad");
		}

	}
} 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();

		boolean hante = true;
		String code = "";
		for (int i = 0; i < S.length(); i++) {
			if (code.equals(String.valueOf(S.charAt(i))) && i != 0) {
				hante = false;
				break;
			}
			code = String.valueOf(S.charAt(i));
		}
		if (hante) {
			System.out.println("Good");
		} else {
			System.out.println("Bad");
		}

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String S = sc.next();

		boolean hante = true;
		String code = "";
		for (int i = 0; i < S.length(); i++) {
			if (code.equals(String.valueOf(S.charAt(i))) && i != 0) {
				hante = false;
				break;
			}
			code = String.valueOf(S.charAt(i));
		}
		if (hante) {
			System.out.println("Good");
		} else {
			System.out.println("Bad");
		}

	} main {
		Scanner sc = new Scanner(System.in);

		String S = sc.next();

		boolean hante = true;
		String code = "";
		for (int i = 0; i < S.length(); i++) {
			if (code.equals(String.valueOf(S.charAt(i))) && i != 0) {
				hante = false;
				break;
			}
			code = String.valueOf(S.charAt(i));
		}
		if (hante) {
			System.out.println("Good");
		} else {
			System.out.println("Bad");
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc boolean hante = true; hante true String code = ""; code "" for (int i = 0; i < S.length(); i++) {
			if (code.equals(String.valueOf(S.charAt(i))) && i != 0) {
				hante = false;
				break;
			}
			code = String.valueOf(S.charAt(i));
		} int i = 0; int i = 0; i 0 i < S.length() i S.length() S.length S i++ i++ i {
			if (code.equals(String.valueOf(S.charAt(i))) && i != 0) {
				hante = false;
				break;
			}
			code = String.valueOf(S.charAt(i));
		} {
			if (code.equals(String.valueOf(S.charAt(i))) && i != 0) {
				hante = false;
				break;
			}
			code = String.valueOf(S.charAt(i));
		} if (code.equals(String.valueOf(S.charAt(i))) && i != 0) {
				hante = false;
				break;
			} code.equals(String.valueOf(S.charAt(i))) && i != 0 code.equals(String.valueOf(S.charAt(i))) code.equals code String.valueOf(S.charAt(i)) String.valueOf String S.charAt(i) S.charAt S i i != 0 i 0 {
				hante = false;
				break;
			} hante = false hante false break; code = String.valueOf(S.charAt(i)) code String.valueOf(S.charAt(i)) String.valueOf String S.charAt(i) S.charAt S i if (hante) {
			System.out.println("Good");
		} else {
			System.out.println("Bad");
		} hante {
			System.out.println("Good");
		} System.out.println("Good") System.out.println System.out System System.out "Good" {
			System.out.println("Bad");
		} System.out.println("Bad") System.out.println System.out System System.out "Bad" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String S = sc.next();

		boolean hante = true;
		String code = "";
		for (int i = 0; i < S.length(); i++) {
			if (code.equals(String.valueOf(S.charAt(i))) && i != 0) {
				hante = false;
				break;
			}
			code = String.valueOf(S.charAt(i));
		}
		if (hante) {
			System.out.println("Good");
		} else {
			System.out.println("Bad");
		}

	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String S = sc.next();

		boolean hante = true;
		String code = "";
		for (int i = 0; i < S.length(); i++) {
			if (code.equals(String.valueOf(S.charAt(i))) && i != 0) {
				hante = false;
				break;
			}
			code = String.valueOf(S.charAt(i));
		}
		if (hante) {
			System.out.println("Good");
		} else {
			System.out.println("Bad");
		}

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String S = sc.next();

		boolean hante = true;
		String code = "";
		for (int i = 0; i < S.length(); i++) {
			if (code.equals(String.valueOf(S.charAt(i))) && i != 0) {
				hante = false;
				break;
			}
			code = String.valueOf(S.charAt(i));
		}
		if (hante) {
			System.out.println("Good");
		} else {
			System.out.println("Bad");
		}

	}
}
