import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		String s = in.next();
		System.out.println(solve(s));
		in.close();
	}

	private static String solve(String s) {
		for (int i = 1; i < s.length(); i++)
			if (s.charAt(i - 1) == s.charAt(i))
				return "Bad";
		return "Good";
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		String s = in.next();
		System.out.println(solve(s));
		in.close();
	}

	private static String solve(String s) {
		for (int i = 1; i < s.length(); i++)
			if (s.charAt(i - 1) == s.charAt(i))
				return "Bad";
		return "Good";
	}

} Main public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		String s = in.next();
		System.out.println(solve(s));
		in.close();
	} main {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		String s = in.next();
		System.out.println(solve(s));
		in.close();
	} Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) String s = in.next(); s in.next() in.next in System.out.println(solve(s)) System.out.println System.out System System.out solve(s) solve s in.close() in.close in String[] args args private static String solve(String s) {
		for (int i = 1; i < s.length(); i++)
			if (s.charAt(i - 1) == s.charAt(i))
				return "Bad";
		return "Good";
	} solve {
		for (int i = 1; i < s.length(); i++)
			if (s.charAt(i - 1) == s.charAt(i))
				return "Bad";
		return "Good";
	} for (int i = 1; i < s.length(); i++)
			if (s.charAt(i - 1) == s.charAt(i))
				return "Bad"; int i = 1; int i = 1; i 1 i < s.length() i s.length() s.length s i++ i++ i if (s.charAt(i - 1) == s.charAt(i))
				return "Bad"; if (s.charAt(i - 1) == s.charAt(i))
				return "Bad"; s.charAt(i - 1) == s.charAt(i) s.charAt(i - 1) s.charAt s i - 1 i 1 s.charAt(i) s.charAt s i return "Bad"; "Bad" return "Good"; "Good" String s s public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		String s = in.next();
		System.out.println(solve(s));
		in.close();
	}

	private static String solve(String s) {
		for (int i = 1; i < s.length(); i++)
			if (s.charAt(i - 1) == s.charAt(i))
				return "Bad";
		return "Good";
	}

} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		String s = in.next();
		System.out.println(solve(s));
		in.close();
	}

	private static String solve(String s) {
		for (int i = 1; i < s.length(); i++)
			if (s.charAt(i - 1) == s.charAt(i))
				return "Bad";
		return "Good";
	}

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		String s = in.next();
		System.out.println(solve(s));
		in.close();
	}

	private static String solve(String s) {
		for (int i = 1; i < s.length(); i++)
			if (s.charAt(i - 1) == s.charAt(i))
				return "Bad";
		return "Good";
	}

}
