import java.util.Arrays;
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		String S  = keyboard.next();
		String[] pass = S.split("");
        
        String ans = "Good";
        for(int i = 0; i < S.length()-1; i++){
	        if(pass[i].equals(pass[i+1])){
	        	ans = "Bad";
			}
		}

		System.out.println(ans);
		keyboard.close();	
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		String S  = keyboard.next();
		String[] pass = S.split("");
        
        String ans = "Good";
        for(int i = 0; i < S.length()-1; i++){
	        if(pass[i].equals(pass[i+1])){
	        	ans = "Bad";
			}
		}

		System.out.println(ans);
		keyboard.close();	
	}
} Main public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		String S  = keyboard.next();
		String[] pass = S.split("");
        
        String ans = "Good";
        for(int i = 0; i < S.length()-1; i++){
	        if(pass[i].equals(pass[i+1])){
	        	ans = "Bad";
			}
		}

		System.out.println(ans);
		keyboard.close();	
	} main {
		
		Scanner keyboard = new Scanner(System.in); 
		
		String S  = keyboard.next();
		String[] pass = S.split("");
        
        String ans = "Good";
        for(int i = 0; i < S.length()-1; i++){
	        if(pass[i].equals(pass[i+1])){
	        	ans = "Bad";
			}
		}

		System.out.println(ans);
		keyboard.close();	
	} Scanner keyboard = new Scanner(System.in); keyboard new Scanner(System.in) String S  = keyboard.next(); S keyboard.next() keyboard.next keyboard String[] pass = S.split(""); pass S.split("") S.split S "" String ans = "Good"; ans "Good" for(int i = 0; i < S.length()-1; i++){
	        if(pass[i].equals(pass[i+1])){
	        	ans = "Bad";
			}
		} int i = 0; int i = 0; i 0 i < S.length()-1 i S.length()-1 S.length() S.length S 1 i++ i++ i {
	        if(pass[i].equals(pass[i+1])){
	        	ans = "Bad";
			}
		} {
	        if(pass[i].equals(pass[i+1])){
	        	ans = "Bad";
			}
		} if(pass[i].equals(pass[i+1])){
	        	ans = "Bad";
			} pass[i].equals(pass[i+1]) pass[i].equals pass[i] pass i pass[i+1] pass i+1 i 1 {
	        	ans = "Bad";
			} ans = "Bad" ans "Bad" System.out.println(ans) System.out.println System.out System System.out ans keyboard.close() keyboard.close keyboard String[] args args public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		String S  = keyboard.next();
		String[] pass = S.split("");
        
        String ans = "Good";
        for(int i = 0; i < S.length()-1; i++){
	        if(pass[i].equals(pass[i+1])){
	        	ans = "Bad";
			}
		}

		System.out.println(ans);
		keyboard.close();	
	}
} public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		String S  = keyboard.next();
		String[] pass = S.split("");
        
        String ans = "Good";
        for(int i = 0; i < S.length()-1; i++){
	        if(pass[i].equals(pass[i+1])){
	        	ans = "Bad";
			}
		}

		System.out.println(ans);
		keyboard.close();	
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
		
		Scanner keyboard = new Scanner(System.in); 
		
		String S  = keyboard.next();
		String[] pass = S.split("");
        
        String ans = "Good";
        for(int i = 0; i < S.length()-1; i++){
	        if(pass[i].equals(pass[i+1])){
	        	ans = "Bad";
			}
		}

		System.out.println(ans);
		keyboard.close();	
	}
}
