import java.util.*;
public class Main{
	public static void main(String args[]) {
		Scanner sc=new Scanner(System.in);
		String S=sc.next();
		sc.close();
		char Scut[]=new char[4];
		boolean signal=false;
		for(int i=0;i<4;i++) {
			Scut[i]=S.charAt(i);
		}
		for(int j=0;j<3;j++) {
			if(Scut[j]==Scut[j+1]) {
				signal=true;
				break;
			}
		}
		if(signal) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	}
} import java.util.*; util.* java public class Main{
	public static void main(String args[]) {
		Scanner sc=new Scanner(System.in);
		String S=sc.next();
		sc.close();
		char Scut[]=new char[4];
		boolean signal=false;
		for(int i=0;i<4;i++) {
			Scut[i]=S.charAt(i);
		}
		for(int j=0;j<3;j++) {
			if(Scut[j]==Scut[j+1]) {
				signal=true;
				break;
			}
		}
		if(signal) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	}
} Main public static void main(String args[]) {
		Scanner sc=new Scanner(System.in);
		String S=sc.next();
		sc.close();
		char Scut[]=new char[4];
		boolean signal=false;
		for(int i=0;i<4;i++) {
			Scut[i]=S.charAt(i);
		}
		for(int j=0;j<3;j++) {
			if(Scut[j]==Scut[j+1]) {
				signal=true;
				break;
			}
		}
		if(signal) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	} main {
		Scanner sc=new Scanner(System.in);
		String S=sc.next();
		sc.close();
		char Scut[]=new char[4];
		boolean signal=false;
		for(int i=0;i<4;i++) {
			Scut[i]=S.charAt(i);
		}
		for(int j=0;j<3;j++) {
			if(Scut[j]==Scut[j+1]) {
				signal=true;
				break;
			}
		}
		if(signal) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) String S=sc.next(); S sc.next() sc.next sc sc.close() sc.close sc char Scut[]=new char[4]; Scut new char[4] 4 boolean signal=false; signal false for(int i=0;i<4;i++) {
			Scut[i]=S.charAt(i);
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			Scut[i]=S.charAt(i);
		} {
			Scut[i]=S.charAt(i);
		} Scut[i]=S.charAt(i) Scut[i] Scut i S.charAt(i) S.charAt S i for(int j=0;j<3;j++) {
			if(Scut[j]==Scut[j+1]) {
				signal=true;
				break;
			}
		} int j=0; int j=0; j 0 j<3 j 3 j++ j++ j {
			if(Scut[j]==Scut[j+1]) {
				signal=true;
				break;
			}
		} {
			if(Scut[j]==Scut[j+1]) {
				signal=true;
				break;
			}
		} if(Scut[j]==Scut[j+1]) {
				signal=true;
				break;
			} Scut[j]==Scut[j+1] Scut[j] Scut j Scut[j+1] Scut j+1 j 1 {
				signal=true;
				break;
			} signal=true signal true break; if(signal) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		} signal {
			System.out.println("Bad");
		} System.out.println("Bad") System.out.println System.out System System.out "Bad" {
			System.out.println("Good");
		} System.out.println("Good") System.out.println System.out System System.out "Good" String args[] args public class Main{
	public static void main(String args[]) {
		Scanner sc=new Scanner(System.in);
		String S=sc.next();
		sc.close();
		char Scut[]=new char[4];
		boolean signal=false;
		for(int i=0;i<4;i++) {
			Scut[i]=S.charAt(i);
		}
		for(int j=0;j<3;j++) {
			if(Scut[j]==Scut[j+1]) {
				signal=true;
				break;
			}
		}
		if(signal) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	}
} public class Main{
	public static void main(String args[]) {
		Scanner sc=new Scanner(System.in);
		String S=sc.next();
		sc.close();
		char Scut[]=new char[4];
		boolean signal=false;
		for(int i=0;i<4;i++) {
			Scut[i]=S.charAt(i);
		}
		for(int j=0;j<3;j++) {
			if(Scut[j]==Scut[j+1]) {
				signal=true;
				break;
			}
		}
		if(signal) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	}
} Main
import java.util.*;
public class Main{
	public static void main(String args[]) {
		Scanner sc=new Scanner(System.in);
		String S=sc.next();
		sc.close();
		char Scut[]=new char[4];
		boolean signal=false;
		for(int i=0;i<4;i++) {
			Scut[i]=S.charAt(i);
		}
		for(int j=0;j<3;j++) {
			if(Scut[j]==Scut[j+1]) {
				signal=true;
				break;
			}
		}
		if(signal) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
	}
}