import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sysin = new Scanner(System.in);
		final String s = sysin.next();
		sysin.close();

		System.out.println(judge(s.toCharArray()));
	}

	private static String judge(char[] chars) {
		for (int i = 1; i < chars.length; i++) {
			if (chars[i] == chars[i - 1]) {
				return "Bad";
			}
		}

		return "Good";
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sysin = new Scanner(System.in);
		final String s = sysin.next();
		sysin.close();

		System.out.println(judge(s.toCharArray()));
	}

	private static String judge(char[] chars) {
		for (int i = 1; i < chars.length; i++) {
			if (chars[i] == chars[i - 1]) {
				return "Bad";
			}
		}

		return "Good";
	}
} Main public static void main(String[] args) {
		Scanner sysin = new Scanner(System.in);
		final String s = sysin.next();
		sysin.close();

		System.out.println(judge(s.toCharArray()));
	} main {
		Scanner sysin = new Scanner(System.in);
		final String s = sysin.next();
		sysin.close();

		System.out.println(judge(s.toCharArray()));
	} Scanner sysin = new Scanner(System.in); sysin new Scanner(System.in) final String s = sysin.next(); s sysin.next() sysin.next sysin sysin.close() sysin.close sysin System.out.println(judge(s.toCharArray())) System.out.println System.out System System.out judge(s.toCharArray()) judge s.toCharArray() s.toCharArray s String[] args args private static String judge(char[] chars) {
		for (int i = 1; i < chars.length; i++) {
			if (chars[i] == chars[i - 1]) {
				return "Bad";
			}
		}

		return "Good";
	} judge {
		for (int i = 1; i < chars.length; i++) {
			if (chars[i] == chars[i - 1]) {
				return "Bad";
			}
		}

		return "Good";
	} for (int i = 1; i < chars.length; i++) {
			if (chars[i] == chars[i - 1]) {
				return "Bad";
			}
		} int i = 1; int i = 1; i 1 i < chars.length i chars.length chars chars.length i++ i++ i {
			if (chars[i] == chars[i - 1]) {
				return "Bad";
			}
		} {
			if (chars[i] == chars[i - 1]) {
				return "Bad";
			}
		} if (chars[i] == chars[i - 1]) {
				return "Bad";
			} chars[i] == chars[i - 1] chars[i] chars i chars[i - 1] chars i - 1 i 1 {
				return "Bad";
			} return "Bad"; "Bad" return "Good"; "Good" char[] chars chars public class Main {
	public static void main(String[] args) {
		Scanner sysin = new Scanner(System.in);
		final String s = sysin.next();
		sysin.close();

		System.out.println(judge(s.toCharArray()));
	}

	private static String judge(char[] chars) {
		for (int i = 1; i < chars.length; i++) {
			if (chars[i] == chars[i - 1]) {
				return "Bad";
			}
		}

		return "Good";
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sysin = new Scanner(System.in);
		final String s = sysin.next();
		sysin.close();

		System.out.println(judge(s.toCharArray()));
	}

	private static String judge(char[] chars) {
		for (int i = 1; i < chars.length; i++) {
			if (chars[i] == chars[i - 1]) {
				return "Bad";
			}
		}

		return "Good";
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sysin = new Scanner(System.in);
		final String s = sysin.next();
		sysin.close();

		System.out.println(judge(s.toCharArray()));
	}

	private static String judge(char[] chars) {
		for (int i = 1; i < chars.length; i++) {
			if (chars[i] == chars[i - 1]) {
				return "Bad";
			}
		}

		return "Good";
	}
}
