import java.util.Scanner;


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

		String S = sc.next();
		char a[] = new char[4];

		for(int i=0;i<S.length();i++) {
			a[i] = S.charAt(i);
		}
		for(int k=0;k<3;k++) {
			if(a[k+1]==a[k]) {System.out.println("Bad");
			return;}
		}
		System.out.println("Good");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		char a[] = new char[4];

		for(int i=0;i<S.length();i++) {
			a[i] = S.charAt(i);
		}
		for(int k=0;k<3;k++) {
			if(a[k+1]==a[k]) {System.out.println("Bad");
			return;}
		}
		System.out.println("Good");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		char a[] = new char[4];

		for(int i=0;i<S.length();i++) {
			a[i] = S.charAt(i);
		}
		for(int k=0;k<3;k++) {
			if(a[k+1]==a[k]) {System.out.println("Bad");
			return;}
		}
		System.out.println("Good");
	} main {
		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		char a[] = new char[4];

		for(int i=0;i<S.length();i++) {
			a[i] = S.charAt(i);
		}
		for(int k=0;k<3;k++) {
			if(a[k+1]==a[k]) {System.out.println("Bad");
			return;}
		}
		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 char a[] = new char[4]; a new char[4] 4 for(int i=0;i<S.length();i++) {
			a[i] = S.charAt(i);
		} int i=0; int i=0; i 0 i<S.length() i S.length() S.length S i++ i++ i {
			a[i] = S.charAt(i);
		} {
			a[i] = S.charAt(i);
		} a[i] = S.charAt(i) a[i] a i S.charAt(i) S.charAt S i for(int k=0;k<3;k++) {
			if(a[k+1]==a[k]) {System.out.println("Bad");
			return;}
		} int k=0; int k=0; k 0 k<3 k 3 k++ k++ k {
			if(a[k+1]==a[k]) {System.out.println("Bad");
			return;}
		} {
			if(a[k+1]==a[k]) {System.out.println("Bad");
			return;}
		} if(a[k+1]==a[k]) {System.out.println("Bad");
			return;} a[k+1]==a[k] a[k+1] a k+1 k 1 a[k] a k {System.out.println("Bad");
			return;} System.out.println("Bad") System.out.println System.out System System.out "Bad" return; 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();
		char a[] = new char[4];

		for(int i=0;i<S.length();i++) {
			a[i] = S.charAt(i);
		}
		for(int k=0;k<3;k++) {
			if(a[k+1]==a[k]) {System.out.println("Bad");
			return;}
		}
		System.out.println("Good");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		char a[] = new char[4];

		for(int i=0;i<S.length();i++) {
			a[i] = S.charAt(i);
		}
		for(int k=0;k<3;k++) {
			if(a[k+1]==a[k]) {System.out.println("Bad");
			return;}
		}
		System.out.println("Good");
	}
} Main
import java.util.Scanner;


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

		String S = sc.next();
		char a[] = new char[4];

		for(int i=0;i<S.length();i++) {
			a[i] = S.charAt(i);
		}
		for(int k=0;k<3;k++) {
			if(a[k+1]==a[k]) {System.out.println("Bad");
			return;}
		}
		System.out.println("Good");
	}
}
