import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String n, ans = "Good";

		n = s.next();
		String m[] = n.split("");

		for (int i = 0; i < m.length - 1; i++) {
			if (m[i].equals(m[i + 1])) {
				ans = "Bad";
			}
		}
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String n, ans = "Good";

		n = s.next();
		String m[] = n.split("");

		for (int i = 0; i < m.length - 1; i++) {
			if (m[i].equals(m[i + 1])) {
				ans = "Bad";
			}
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String n, ans = "Good";

		n = s.next();
		String m[] = n.split("");

		for (int i = 0; i < m.length - 1; i++) {
			if (m[i].equals(m[i + 1])) {
				ans = "Bad";
			}
		}
		System.out.println(ans);
	} main {
		Scanner s = new Scanner(System.in);
		String n, ans = "Good";

		n = s.next();
		String m[] = n.split("");

		for (int i = 0; i < m.length - 1; i++) {
			if (m[i].equals(m[i + 1])) {
				ans = "Bad";
			}
		}
		System.out.println(ans);
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) String n n ans = "Good"; ans "Good" n = s.next() n s.next() s.next s String m[] = n.split(""); m n.split("") n.split n "" for (int i = 0; i < m.length - 1; i++) {
			if (m[i].equals(m[i + 1])) {
				ans = "Bad";
			}
		} int i = 0; int i = 0; i 0 i < m.length - 1 i m.length - 1 m.length m m.length 1 i++ i++ i {
			if (m[i].equals(m[i + 1])) {
				ans = "Bad";
			}
		} {
			if (m[i].equals(m[i + 1])) {
				ans = "Bad";
			}
		} if (m[i].equals(m[i + 1])) {
				ans = "Bad";
			} m[i].equals(m[i + 1]) m[i].equals m[i] m i m[i + 1] m i + 1 i 1 {
				ans = "Bad";
			} ans = "Bad" ans "Bad" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String n, ans = "Good";

		n = s.next();
		String m[] = n.split("");

		for (int i = 0; i < m.length - 1; i++) {
			if (m[i].equals(m[i + 1])) {
				ans = "Bad";
			}
		}
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String n, ans = "Good";

		n = s.next();
		String m[] = n.split("");

		for (int i = 0; i < m.length - 1; i++) {
			if (m[i].equals(m[i + 1])) {
				ans = "Bad";
			}
		}
		System.out.println(ans);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String n, ans = "Good";

		n = s.next();
		String m[] = n.split("");

		for (int i = 0; i < m.length - 1; i++) {
			if (m[i].equals(m[i + 1])) {
				ans = "Bad";
			}
		}
		System.out.println(ans);
	}
}
