import java.util.Scanner;
//import java.util.Arrays;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//
		String s = sc.next();
		System.out.println(s.charAt(0) == s.charAt(1) || s.charAt(1) == s.charAt(2) || s.charAt(2) == s.charAt(3) ? "Bad" : "Good");
	}
} 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();
		System.out.println(s.charAt(0) == s.charAt(1) || s.charAt(1) == s.charAt(2) || s.charAt(2) == s.charAt(3) ? "Bad" : "Good");
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//
		String s = sc.next();
		System.out.println(s.charAt(0) == s.charAt(1) || s.charAt(1) == s.charAt(2) || s.charAt(2) == s.charAt(3) ? "Bad" : "Good");
	} main {
		Scanner sc = new Scanner(System.in);
		//
		String s = sc.next();
		System.out.println(s.charAt(0) == s.charAt(1) || s.charAt(1) == s.charAt(2) || s.charAt(2) == s.charAt(3) ? "Bad" : "Good");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc System.out.println(s.charAt(0) == s.charAt(1) || s.charAt(1) == s.charAt(2) || s.charAt(2) == s.charAt(3) ? "Bad" : "Good") System.out.println System.out System System.out s.charAt(0) == s.charAt(1) || s.charAt(1) == s.charAt(2) || s.charAt(2) == s.charAt(3) ? "Bad" : "Good" s.charAt(0) == s.charAt(1) || s.charAt(1) == s.charAt(2) || s.charAt(2) == s.charAt(3) s.charAt(0) == s.charAt(1) || s.charAt(1) == s.charAt(2) || s.charAt(2) == s.charAt(3) s.charAt(0) == s.charAt(1) s.charAt(0) s.charAt s 0 s.charAt(1) s.charAt s 1 s.charAt(1) == s.charAt(2) s.charAt(1) s.charAt s 1 s.charAt(2) s.charAt s 2 s.charAt(2) == s.charAt(3) s.charAt(2) s.charAt s 2 s.charAt(3) s.charAt s 3 "Bad" "Good" String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//
		String s = sc.next();
		System.out.println(s.charAt(0) == s.charAt(1) || s.charAt(1) == s.charAt(2) || s.charAt(2) == s.charAt(3) ? "Bad" : "Good");
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//
		String s = sc.next();
		System.out.println(s.charAt(0) == s.charAt(1) || s.charAt(1) == s.charAt(2) || s.charAt(2) == s.charAt(3) ? "Bad" : "Good");
	}
} Main
import java.util.Scanner;
//import java.util.Arrays;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//
		String s = sc.next();
		System.out.println(s.charAt(0) == s.charAt(1) || s.charAt(1) == s.charAt(2) || s.charAt(2) == s.charAt(3) ? "Bad" : "Good");
	}
}
