import java.util.*;

public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String  S = sc.next();
   // char[] s = S.toCharArray();
    //ArrayList<Character> aa = new ArrayList<>();

	if(S.charAt(0)==S.charAt(1)){
		System.out.println("Bad");
    }else if(S.charAt(1)==S.charAt(2)){
		System.out.println("Bad");
    }else if(S.charAt(2)==S.charAt(3)){
		System.out.println("Bad");
    }else{
		System.out.println("Good");
	}
	}
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String  S = sc.next();
   // char[] s = S.toCharArray();
    //ArrayList<Character> aa = new ArrayList<>();

	if(S.charAt(0)==S.charAt(1)){
		System.out.println("Bad");
    }else if(S.charAt(1)==S.charAt(2)){
		System.out.println("Bad");
    }else if(S.charAt(2)==S.charAt(3)){
		System.out.println("Bad");
    }else{
		System.out.println("Good");
	}
	}
} Main public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String  S = sc.next();
   // char[] s = S.toCharArray();
    //ArrayList<Character> aa = new ArrayList<>();

	if(S.charAt(0)==S.charAt(1)){
		System.out.println("Bad");
    }else if(S.charAt(1)==S.charAt(2)){
		System.out.println("Bad");
    }else if(S.charAt(2)==S.charAt(3)){
		System.out.println("Bad");
    }else{
		System.out.println("Good");
	}
	} main {
    
    Scanner sc = new Scanner(System.in);
    String  S = sc.next();
   // char[] s = S.toCharArray();
    //ArrayList<Character> aa = new ArrayList<>();

	if(S.charAt(0)==S.charAt(1)){
		System.out.println("Bad");
    }else if(S.charAt(1)==S.charAt(2)){
		System.out.println("Bad");
    }else if(S.charAt(2)==S.charAt(3)){
		System.out.println("Bad");
    }else{
		System.out.println("Good");
	}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String  S = sc.next(); S sc.next() sc.next sc if(S.charAt(0)==S.charAt(1)){
		System.out.println("Bad");
    }else if(S.charAt(1)==S.charAt(2)){
		System.out.println("Bad");
    }else if(S.charAt(2)==S.charAt(3)){
		System.out.println("Bad");
    }else{
		System.out.println("Good");
	} S.charAt(0)==S.charAt(1) S.charAt(0) S.charAt S 0 S.charAt(1) S.charAt S 1 {
		System.out.println("Bad");
    } System.out.println("Bad") System.out.println System.out System System.out "Bad" if(S.charAt(1)==S.charAt(2)){
		System.out.println("Bad");
    }else if(S.charAt(2)==S.charAt(3)){
		System.out.println("Bad");
    }else{
		System.out.println("Good");
	} S.charAt(1)==S.charAt(2) S.charAt(1) S.charAt S 1 S.charAt(2) S.charAt S 2 {
		System.out.println("Bad");
    } System.out.println("Bad") System.out.println System.out System System.out "Bad" if(S.charAt(2)==S.charAt(3)){
		System.out.println("Bad");
    }else{
		System.out.println("Good");
	} S.charAt(2)==S.charAt(3) S.charAt(2) S.charAt S 2 S.charAt(3) S.charAt S 3 {
		System.out.println("Bad");
    } System.out.println("Bad") System.out.println System.out System System.out "Bad" {
		System.out.println("Good");
	} System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String  S = sc.next();
   // char[] s = S.toCharArray();
    //ArrayList<Character> aa = new ArrayList<>();

	if(S.charAt(0)==S.charAt(1)){
		System.out.println("Bad");
    }else if(S.charAt(1)==S.charAt(2)){
		System.out.println("Bad");
    }else if(S.charAt(2)==S.charAt(3)){
		System.out.println("Bad");
    }else{
		System.out.println("Good");
	}
	}
} public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String  S = sc.next();
   // char[] s = S.toCharArray();
    //ArrayList<Character> aa = new ArrayList<>();

	if(S.charAt(0)==S.charAt(1)){
		System.out.println("Bad");
    }else if(S.charAt(1)==S.charAt(2)){
		System.out.println("Bad");
    }else if(S.charAt(2)==S.charAt(3)){
		System.out.println("Bad");
    }else{
		System.out.println("Good");
	}
	}
} Main
import java.util.*;

public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String  S = sc.next();
   // char[] s = S.toCharArray();
    //ArrayList<Character> aa = new ArrayList<>();

	if(S.charAt(0)==S.charAt(1)){
		System.out.println("Bad");
    }else if(S.charAt(1)==S.charAt(2)){
		System.out.println("Bad");
    }else if(S.charAt(2)==S.charAt(3)){
		System.out.println("Bad");
    }else{
		System.out.println("Good");
	}
	}
}