import java.util.*;
class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        String S = stdIn.next();
	char[] c = new char[4];
	int flag =0;
	for(int i=0;i<3;i++){
	    if(S.charAt(i)==S.charAt(i+1)){
		flag++;
	        System.out.println("Bad");
		break;
	    }
	}
	if(flag==0){
	    System.out.println("Good");
	}   
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        String S = stdIn.next();
	char[] c = new char[4];
	int flag =0;
	for(int i=0;i<3;i++){
	    if(S.charAt(i)==S.charAt(i+1)){
		flag++;
	        System.out.println("Bad");
		break;
	    }
	}
	if(flag==0){
	    System.out.println("Good");
	}   
    }
} Main public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        String S = stdIn.next();
	char[] c = new char[4];
	int flag =0;
	for(int i=0;i<3;i++){
	    if(S.charAt(i)==S.charAt(i+1)){
		flag++;
	        System.out.println("Bad");
		break;
	    }
	}
	if(flag==0){
	    System.out.println("Good");
	}   
    } main {
	Scanner stdIn = new Scanner(System.in);
        String S = stdIn.next();
	char[] c = new char[4];
	int flag =0;
	for(int i=0;i<3;i++){
	    if(S.charAt(i)==S.charAt(i+1)){
		flag++;
	        System.out.println("Bad");
		break;
	    }
	}
	if(flag==0){
	    System.out.println("Good");
	}   
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) String S = stdIn.next(); S stdIn.next() stdIn.next stdIn char[] c = new char[4]; c new char[4] 4 int flag =0; flag 0 for(int i=0;i<3;i++){
	    if(S.charAt(i)==S.charAt(i+1)){
		flag++;
	        System.out.println("Bad");
		break;
	    }
	} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
	    if(S.charAt(i)==S.charAt(i+1)){
		flag++;
	        System.out.println("Bad");
		break;
	    }
	} {
	    if(S.charAt(i)==S.charAt(i+1)){
		flag++;
	        System.out.println("Bad");
		break;
	    }
	} if(S.charAt(i)==S.charAt(i+1)){
		flag++;
	        System.out.println("Bad");
		break;
	    } S.charAt(i)==S.charAt(i+1) S.charAt(i) S.charAt S i S.charAt(i+1) S.charAt S i+1 i 1 {
		flag++;
	        System.out.println("Bad");
		break;
	    } flag++ flag System.out.println("Bad") System.out.println System.out System System.out "Bad" break; if(flag==0){
	    System.out.println("Good");
	} flag==0 flag 0 {
	    System.out.println("Good");
	} System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args
import java.util.*;
class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        String S = stdIn.next();
	char[] c = new char[4];
	int flag =0;
	for(int i=0;i<3;i++){
	    if(S.charAt(i)==S.charAt(i+1)){
		flag++;
	        System.out.println("Bad");
		break;
	    }
	}
	if(flag==0){
	    System.out.println("Good");
	}   
    }
}
