import java.util.*;
public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		String a=sc.next();
		char ch[]=a.toCharArray();
		int c=0;
		for(int i=0;i<3;i++){
			if(ch[i]==ch[i+1]){
				c++;
				break;
			}
		}
			if(c>0)
				System.out.println("Bad");
			else System.out.println("Good");
	}
} import java.util.*; util.* java public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		String a=sc.next();
		char ch[]=a.toCharArray();
		int c=0;
		for(int i=0;i<3;i++){
			if(ch[i]==ch[i+1]){
				c++;
				break;
			}
		}
			if(c>0)
				System.out.println("Bad");
			else System.out.println("Good");
	}
} Main public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		String a=sc.next();
		char ch[]=a.toCharArray();
		int c=0;
		for(int i=0;i<3;i++){
			if(ch[i]==ch[i+1]){
				c++;
				break;
			}
		}
			if(c>0)
				System.out.println("Bad");
			else System.out.println("Good");
	} main {
		Scanner sc=new Scanner(System.in);
		String a=sc.next();
		char ch[]=a.toCharArray();
		int c=0;
		for(int i=0;i<3;i++){
			if(ch[i]==ch[i+1]){
				c++;
				break;
			}
		}
			if(c>0)
				System.out.println("Bad");
			else System.out.println("Good");
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) String a=sc.next(); a sc.next() sc.next sc char ch[]=a.toCharArray(); ch a.toCharArray() a.toCharArray a int c=0; c 0 for(int i=0;i<3;i++){
			if(ch[i]==ch[i+1]){
				c++;
				break;
			}
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			if(ch[i]==ch[i+1]){
				c++;
				break;
			}
		} {
			if(ch[i]==ch[i+1]){
				c++;
				break;
			}
		} if(ch[i]==ch[i+1]){
				c++;
				break;
			} ch[i]==ch[i+1] ch[i] ch i ch[i+1] ch i+1 i 1 {
				c++;
				break;
			} c++ c break; if(c>0)
				System.out.println("Bad");
			else System.out.println("Good"); c>0 c 0 System.out.println("Bad") System.out.println System.out System System.out "Bad" System.out.println("Good") System.out.println System.out System System.out "Good" String arg[] arg public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		String a=sc.next();
		char ch[]=a.toCharArray();
		int c=0;
		for(int i=0;i<3;i++){
			if(ch[i]==ch[i+1]){
				c++;
				break;
			}
		}
			if(c>0)
				System.out.println("Bad");
			else System.out.println("Good");
	}
} public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		String a=sc.next();
		char ch[]=a.toCharArray();
		int c=0;
		for(int i=0;i<3;i++){
			if(ch[i]==ch[i+1]){
				c++;
				break;
			}
		}
			if(c>0)
				System.out.println("Bad");
			else System.out.println("Good");
	}
} Main
import java.util.*;
public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		String a=sc.next();
		char ch[]=a.toCharArray();
		int c=0;
		for(int i=0;i<3;i++){
			if(ch[i]==ch[i+1]){
				c++;
				break;
			}
		}
			if(c>0)
				System.out.println("Bad");
			else System.out.println("Good");
	}
}