import java.util.*; 

class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
      
        String s=sc.next();
		int ans=0;
  		String[] a=s.split("");
		for(int c=0;c<3;c++){
    		if(a[c].equals(a[c+1])){
            ans++;
            }
    	}
    
 	if(ans==0){
    		System.out.println("Good");
    	}else{
     		System.out.println("Bad");
   	 }

    	
    }
} import java.util.*; util.* java class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
      
        String s=sc.next();
		int ans=0;
  		String[] a=s.split("");
		for(int c=0;c<3;c++){
    		if(a[c].equals(a[c+1])){
            ans++;
            }
    	}
    
 	if(ans==0){
    		System.out.println("Good");
    	}else{
     		System.out.println("Bad");
   	 }

    	
    }
} Main public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
      
        String s=sc.next();
		int ans=0;
  		String[] a=s.split("");
		for(int c=0;c<3;c++){
    		if(a[c].equals(a[c+1])){
            ans++;
            }
    	}
    
 	if(ans==0){
    		System.out.println("Good");
    	}else{
     		System.out.println("Bad");
   	 }

    	
    } main {
	Scanner sc=new Scanner(System.in);
      
        String s=sc.next();
		int ans=0;
  		String[] a=s.split("");
		for(int c=0;c<3;c++){
    		if(a[c].equals(a[c+1])){
            ans++;
            }
    	}
    
 	if(ans==0){
    		System.out.println("Good");
    	}else{
     		System.out.println("Bad");
   	 }

    	
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) String s=sc.next(); s sc.next() sc.next sc int ans=0; ans 0 String[] a=s.split(""); a s.split("") s.split s "" for(int c=0;c<3;c++){
    		if(a[c].equals(a[c+1])){
            ans++;
            }
    	} int c=0; int c=0; c 0 c<3 c 3 c++ c++ c {
    		if(a[c].equals(a[c+1])){
            ans++;
            }
    	} {
    		if(a[c].equals(a[c+1])){
            ans++;
            }
    	} if(a[c].equals(a[c+1])){
            ans++;
            } a[c].equals(a[c+1]) a[c].equals a[c] a c a[c+1] a c+1 c 1 {
            ans++;
            } ans++ ans if(ans==0){
    		System.out.println("Good");
    	}else{
     		System.out.println("Bad");
   	 } ans==0 ans 0 {
    		System.out.println("Good");
    	} System.out.println("Good") System.out.println System.out System System.out "Good" {
     		System.out.println("Bad");
   	 } System.out.println("Bad") System.out.println System.out System System.out "Bad" String[] args args
import java.util.*; 

class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
      
        String s=sc.next();
		int ans=0;
  		String[] a=s.split("");
		for(int c=0;c<3;c++){
    		if(a[c].equals(a[c+1])){
            ans++;
            }
    	}
    
 	if(ans==0){
    		System.out.println("Good");
    	}else{
     		System.out.println("Bad");
   	 }

    	
    }
}
