import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		    Scanner sc = new Scanner(System.in);

		    String s_original = sc.nextLine();
		    String[] s = s_original.split("",0);
		    int flg=0;

		    for(int i=0; i<s.length-1;i++) {
		    	if(s[i].equals(s[i+1])) {
		    		System.out.println("Bad");
		    		flg=1;
		    		break;
		    	}
		    }
		    if(flg==0) {
		    	System.out.println("Good");
		    }

		    sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		    Scanner sc = new Scanner(System.in);

		    String s_original = sc.nextLine();
		    String[] s = s_original.split("",0);
		    int flg=0;

		    for(int i=0; i<s.length-1;i++) {
		    	if(s[i].equals(s[i+1])) {
		    		System.out.println("Bad");
		    		flg=1;
		    		break;
		    	}
		    }
		    if(flg==0) {
		    	System.out.println("Good");
		    }

		    sc.close();
	}
} Main public static void main(String[] args) {
		    Scanner sc = new Scanner(System.in);

		    String s_original = sc.nextLine();
		    String[] s = s_original.split("",0);
		    int flg=0;

		    for(int i=0; i<s.length-1;i++) {
		    	if(s[i].equals(s[i+1])) {
		    		System.out.println("Bad");
		    		flg=1;
		    		break;
		    	}
		    }
		    if(flg==0) {
		    	System.out.println("Good");
		    }

		    sc.close();
	} main {
		    Scanner sc = new Scanner(System.in);

		    String s_original = sc.nextLine();
		    String[] s = s_original.split("",0);
		    int flg=0;

		    for(int i=0; i<s.length-1;i++) {
		    	if(s[i].equals(s[i+1])) {
		    		System.out.println("Bad");
		    		flg=1;
		    		break;
		    	}
		    }
		    if(flg==0) {
		    	System.out.println("Good");
		    }

		    sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s_original = sc.nextLine(); s_original sc.nextLine() sc.nextLine sc String[] s = s_original.split("",0); s s_original.split("",0) s_original.split s_original "" 0 int flg=0; flg 0 for(int i=0; i<s.length-1;i++) {
		    	if(s[i].equals(s[i+1])) {
		    		System.out.println("Bad");
		    		flg=1;
		    		break;
		    	}
		    } int i=0; int i=0; i 0 i<s.length-1 i s.length-1 s.length s s.length 1 i++ i++ i {
		    	if(s[i].equals(s[i+1])) {
		    		System.out.println("Bad");
		    		flg=1;
		    		break;
		    	}
		    } {
		    	if(s[i].equals(s[i+1])) {
		    		System.out.println("Bad");
		    		flg=1;
		    		break;
		    	}
		    } if(s[i].equals(s[i+1])) {
		    		System.out.println("Bad");
		    		flg=1;
		    		break;
		    	} s[i].equals(s[i+1]) s[i].equals s[i] s i s[i+1] s i+1 i 1 {
		    		System.out.println("Bad");
		    		flg=1;
		    		break;
		    	} System.out.println("Bad") System.out.println System.out System System.out "Bad" flg=1 flg 1 break; if(flg==0) {
		    	System.out.println("Good");
		    } flg==0 flg 0 {
		    	System.out.println("Good");
		    } System.out.println("Good") System.out.println System.out System System.out "Good" sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		    Scanner sc = new Scanner(System.in);

		    String s_original = sc.nextLine();
		    String[] s = s_original.split("",0);
		    int flg=0;

		    for(int i=0; i<s.length-1;i++) {
		    	if(s[i].equals(s[i+1])) {
		    		System.out.println("Bad");
		    		flg=1;
		    		break;
		    	}
		    }
		    if(flg==0) {
		    	System.out.println("Good");
		    }

		    sc.close();
	}
} public class Main {

	public static void main(String[] args) {
		    Scanner sc = new Scanner(System.in);

		    String s_original = sc.nextLine();
		    String[] s = s_original.split("",0);
		    int flg=0;

		    for(int i=0; i<s.length-1;i++) {
		    	if(s[i].equals(s[i+1])) {
		    		System.out.println("Bad");
		    		flg=1;
		    		break;
		    	}
		    }
		    if(flg==0) {
		    	System.out.println("Good");
		    }

		    sc.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		    Scanner sc = new Scanner(System.in);

		    String s_original = sc.nextLine();
		    String[] s = s_original.split("",0);
		    int flg=0;

		    for(int i=0; i<s.length-1;i++) {
		    	if(s[i].equals(s[i+1])) {
		    		System.out.println("Bad");
		    		flg=1;
		    		break;
		    	}
		    }
		    if(flg==0) {
		    	System.out.println("Good");
		    }

		    sc.close();
	}
}
