import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		System.out.println(sc.next().matches(".*(.)\\1{1}.*") ? "Bad" : "Good");
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		System.out.println(sc.next().matches(".*(.)\\1{1}.*") ? "Bad" : "Good");
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		System.out.println(sc.next().matches(".*(.)\\1{1}.*") ? "Bad" : "Good");
	} main {

		Scanner sc = new Scanner(System.in);

		System.out.println(sc.next().matches(".*(.)\\1{1}.*") ? "Bad" : "Good");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) System.out.println(sc.next().matches(".*(.)\\1{1}.*") ? "Bad" : "Good") System.out.println System.out System System.out sc.next().matches(".*(.)\\1{1}.*") ? "Bad" : "Good" sc.next().matches(".*(.)\\1{1}.*") sc.next().matches sc.next() sc.next sc ".*(.)\\1{1}.*" "Bad" "Good" String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		System.out.println(sc.next().matches(".*(.)\\1{1}.*") ? "Bad" : "Good");
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		System.out.println(sc.next().matches(".*(.)\\1{1}.*") ? "Bad" : "Good");
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		System.out.println(sc.next().matches(".*(.)\\1{1}.*") ? "Bad" : "Good");
	}
}