import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		String str=sc.next();
		boolean s=true;
		String[] a=new String[4];

		for(int i=0;i<4;i++){
			a[i]=str.substring(i,i+1);
		}
		for(int i=0;i<3;i++){
			if(a[i].equals(a[i+1]))
				s=false;
		}
		if(s==true)
			System.out.println("Good");
		else
			System.out.println("Bad");
		
	}
} import java.util.*; util.* java class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		String str=sc.next();
		boolean s=true;
		String[] a=new String[4];

		for(int i=0;i<4;i++){
			a[i]=str.substring(i,i+1);
		}
		for(int i=0;i<3;i++){
			if(a[i].equals(a[i+1]))
				s=false;
		}
		if(s==true)
			System.out.println("Good");
		else
			System.out.println("Bad");
		
	}
} Main public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		String str=sc.next();
		boolean s=true;
		String[] a=new String[4];

		for(int i=0;i<4;i++){
			a[i]=str.substring(i,i+1);
		}
		for(int i=0;i<3;i++){
			if(a[i].equals(a[i+1]))
				s=false;
		}
		if(s==true)
			System.out.println("Good");
		else
			System.out.println("Bad");
		
	} main {
		Scanner sc=new Scanner(System.in);
		String str=sc.next();
		boolean s=true;
		String[] a=new String[4];

		for(int i=0;i<4;i++){
			a[i]=str.substring(i,i+1);
		}
		for(int i=0;i<3;i++){
			if(a[i].equals(a[i+1]))
				s=false;
		}
		if(s==true)
			System.out.println("Good");
		else
			System.out.println("Bad");
		
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) String str=sc.next(); str sc.next() sc.next sc boolean s=true; s true String[] a=new String[4]; a new String[4] 4 for(int i=0;i<4;i++){
			a[i]=str.substring(i,i+1);
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			a[i]=str.substring(i,i+1);
		} {
			a[i]=str.substring(i,i+1);
		} a[i]=str.substring(i,i+1) a[i] a i str.substring(i,i+1) str.substring str i i+1 i 1 for(int i=0;i<3;i++){
			if(a[i].equals(a[i+1]))
				s=false;
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			if(a[i].equals(a[i+1]))
				s=false;
		} {
			if(a[i].equals(a[i+1]))
				s=false;
		} if(a[i].equals(a[i+1]))
				s=false; a[i].equals(a[i+1]) a[i].equals a[i] a i a[i+1] a i+1 i 1 s=false s false if(s==true)
			System.out.println("Good");
		else
			System.out.println("Bad"); s==true s true System.out.println("Good") System.out.println System.out System System.out "Good" System.out.println("Bad") System.out.println System.out System System.out "Bad" String[] args args
import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		String str=sc.next();
		boolean s=true;
		String[] a=new String[4];

		for(int i=0;i<4;i++){
			a[i]=str.substring(i,i+1);
		}
		for(int i=0;i<3;i++){
			if(a[i].equals(a[i+1]))
				s=false;
		}
		if(s==true)
			System.out.println("Good");
		else
			System.out.println("Bad");
		
	}
}