import java.util.*;

class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String[] foo = sc.nextLine().split("");
      	int hoge[] = new int[4];
      	for(int i = 0; i < 4; i++) {
      		hoge[i] = Integer.parseInt(foo[i]);
      	}
      	int temp = -1;
      	String str = "Good";
      	for(int i = 0; i < 4; i++){
      		int nabe = hoge[i];
        	if(temp==nabe){
            	str = "Bad";
              	break;
            }
          	temp = nabe;
        }
      
      	System.out.println(str);
    }
} import java.util.*; util.* java class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String[] foo = sc.nextLine().split("");
      	int hoge[] = new int[4];
      	for(int i = 0; i < 4; i++) {
      		hoge[i] = Integer.parseInt(foo[i]);
      	}
      	int temp = -1;
      	String str = "Good";
      	for(int i = 0; i < 4; i++){
      		int nabe = hoge[i];
        	if(temp==nabe){
            	str = "Bad";
              	break;
            }
          	temp = nabe;
        }
      
      	System.out.println(str);
    }
} Main public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String[] foo = sc.nextLine().split("");
      	int hoge[] = new int[4];
      	for(int i = 0; i < 4; i++) {
      		hoge[i] = Integer.parseInt(foo[i]);
      	}
      	int temp = -1;
      	String str = "Good";
      	for(int i = 0; i < 4; i++){
      		int nabe = hoge[i];
        	if(temp==nabe){
            	str = "Bad";
              	break;
            }
          	temp = nabe;
        }
      
      	System.out.println(str);
    } main {
    	Scanner sc = new Scanner(System.in);
      	String[] foo = sc.nextLine().split("");
      	int hoge[] = new int[4];
      	for(int i = 0; i < 4; i++) {
      		hoge[i] = Integer.parseInt(foo[i]);
      	}
      	int temp = -1;
      	String str = "Good";
      	for(int i = 0; i < 4; i++){
      		int nabe = hoge[i];
        	if(temp==nabe){
            	str = "Bad";
              	break;
            }
          	temp = nabe;
        }
      
      	System.out.println(str);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] foo = sc.nextLine().split(""); foo sc.nextLine().split("") sc.nextLine().split sc.nextLine() sc.nextLine sc "" int hoge[] = new int[4]; hoge new int[4] 4 for(int i = 0; i < 4; i++) {
      		hoge[i] = Integer.parseInt(foo[i]);
      	} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
      		hoge[i] = Integer.parseInt(foo[i]);
      	} {
      		hoge[i] = Integer.parseInt(foo[i]);
      	} hoge[i] = Integer.parseInt(foo[i]) hoge[i] hoge i Integer.parseInt(foo[i]) Integer.parseInt Integer foo[i] foo i int temp = -1; temp -1 1 String str = "Good"; str "Good" for(int i = 0; i < 4; i++){
      		int nabe = hoge[i];
        	if(temp==nabe){
            	str = "Bad";
              	break;
            }
          	temp = nabe;
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
      		int nabe = hoge[i];
        	if(temp==nabe){
            	str = "Bad";
              	break;
            }
          	temp = nabe;
        } {
      		int nabe = hoge[i];
        	if(temp==nabe){
            	str = "Bad";
              	break;
            }
          	temp = nabe;
        } int nabe = hoge[i]; nabe hoge[i] hoge i if(temp==nabe){
            	str = "Bad";
              	break;
            } temp==nabe temp nabe {
            	str = "Bad";
              	break;
            } str = "Bad" str "Bad" break; temp = nabe temp nabe System.out.println(str) System.out.println System.out System System.out str String[] args args
import java.util.*;

class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String[] foo = sc.nextLine().split("");
      	int hoge[] = new int[4];
      	for(int i = 0; i < 4; i++) {
      		hoge[i] = Integer.parseInt(foo[i]);
      	}
      	int temp = -1;
      	String str = "Good";
      	for(int i = 0; i < 4; i++){
      		int nabe = hoge[i];
        	if(temp==nabe){
            	str = "Bad";
              	break;
            }
          	temp = nabe;
        }
      
      	System.out.println(str);
    }
}