import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System. in);
      
      	boolean isBad = false;
      	String str = sc.next();
      	//String [] strArr = str.split("");
      	String a = "";
      
      	for (int i = 0; i <= 3; i++){
          //	System.out.println(strArr[i]);
           if (String.valueOf(str.charAt(i)).equals(a)){
            isBad = true; 
           }
          a = String.valueOf(str.charAt(i));
        }
      	String out = "";
      	if (isBad == true){
          out = "Bad";
        }else{
          out = "Good";
        }
		System.out.println(out);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System. in);
      
      	boolean isBad = false;
      	String str = sc.next();
      	//String [] strArr = str.split("");
      	String a = "";
      
      	for (int i = 0; i <= 3; i++){
          //	System.out.println(strArr[i]);
           if (String.valueOf(str.charAt(i)).equals(a)){
            isBad = true; 
           }
          a = String.valueOf(str.charAt(i));
        }
      	String out = "";
      	if (isBad == true){
          out = "Bad";
        }else{
          out = "Good";
        }
		System.out.println(out);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System. in);
      
      	boolean isBad = false;
      	String str = sc.next();
      	//String [] strArr = str.split("");
      	String a = "";
      
      	for (int i = 0; i <= 3; i++){
          //	System.out.println(strArr[i]);
           if (String.valueOf(str.charAt(i)).equals(a)){
            isBad = true; 
           }
          a = String.valueOf(str.charAt(i));
        }
      	String out = "";
      	if (isBad == true){
          out = "Bad";
        }else{
          out = "Good";
        }
		System.out.println(out);
	} main {
		Scanner sc = new Scanner(System. in);
      
      	boolean isBad = false;
      	String str = sc.next();
      	//String [] strArr = str.split("");
      	String a = "";
      
      	for (int i = 0; i <= 3; i++){
          //	System.out.println(strArr[i]);
           if (String.valueOf(str.charAt(i)).equals(a)){
            isBad = true; 
           }
          a = String.valueOf(str.charAt(i));
        }
      	String out = "";
      	if (isBad == true){
          out = "Bad";
        }else{
          out = "Good";
        }
		System.out.println(out);
	} Scanner sc = new Scanner(System. in); sc new Scanner(System. in) boolean isBad = false; isBad false String str = sc.next(); str sc.next() sc.next sc String a = ""; a "" for (int i = 0; i <= 3; i++){
          //	System.out.println(strArr[i]);
           if (String.valueOf(str.charAt(i)).equals(a)){
            isBad = true; 
           }
          a = String.valueOf(str.charAt(i));
        } int i = 0; int i = 0; i 0 i <= 3 i 3 i++ i++ i {
          //	System.out.println(strArr[i]);
           if (String.valueOf(str.charAt(i)).equals(a)){
            isBad = true; 
           }
          a = String.valueOf(str.charAt(i));
        } {
          //	System.out.println(strArr[i]);
           if (String.valueOf(str.charAt(i)).equals(a)){
            isBad = true; 
           }
          a = String.valueOf(str.charAt(i));
        } if (String.valueOf(str.charAt(i)).equals(a)){
            isBad = true; 
           } String.valueOf(str.charAt(i)).equals(a) String.valueOf(str.charAt(i)).equals String.valueOf(str.charAt(i)) String.valueOf String str.charAt(i) str.charAt str i a {
            isBad = true; 
           } isBad = true isBad true a = String.valueOf(str.charAt(i)) a String.valueOf(str.charAt(i)) String.valueOf String str.charAt(i) str.charAt str i String out = ""; out "" if (isBad == true){
          out = "Bad";
        }else{
          out = "Good";
        } isBad == true isBad true {
          out = "Bad";
        } out = "Bad" out "Bad" {
          out = "Good";
        } out = "Good" out "Good" System.out.println(out) System.out.println System.out System System.out out String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System. in);
      
      	boolean isBad = false;
      	String str = sc.next();
      	//String [] strArr = str.split("");
      	String a = "";
      
      	for (int i = 0; i <= 3; i++){
          //	System.out.println(strArr[i]);
           if (String.valueOf(str.charAt(i)).equals(a)){
            isBad = true; 
           }
          a = String.valueOf(str.charAt(i));
        }
      	String out = "";
      	if (isBad == true){
          out = "Bad";
        }else{
          out = "Good";
        }
		System.out.println(out);
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System. in);
      
      	boolean isBad = false;
      	String str = sc.next();
      	//String [] strArr = str.split("");
      	String a = "";
      
      	for (int i = 0; i <= 3; i++){
          //	System.out.println(strArr[i]);
           if (String.valueOf(str.charAt(i)).equals(a)){
            isBad = true; 
           }
          a = String.valueOf(str.charAt(i));
        }
      	String out = "";
      	if (isBad == true){
          out = "Bad";
        }else{
          out = "Good";
        }
		System.out.println(out);
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System. in);
      
      	boolean isBad = false;
      	String str = sc.next();
      	//String [] strArr = str.split("");
      	String a = "";
      
      	for (int i = 0; i <= 3; i++){
          //	System.out.println(strArr[i]);
           if (String.valueOf(str.charAt(i)).equals(a)){
            isBad = true; 
           }
          a = String.valueOf(str.charAt(i));
        }
      	String out = "";
      	if (isBad == true){
          out = "Bad";
        }else{
          out = "Good";
        }
		System.out.println(out);
	}
}