import java.io.FileNotFoundException;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws FileNotFoundException {

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		sc.close();

		char[] s = S.toCharArray();

		boolean flg = true;

		for(int i=0;i<S.length()-1;i++) {
			if(s[i]==s[i+1]) {
				flg = false;
			}
		}
		if(flg) {
			System.out.println("Good");
		} else {
			System.out.println("Bad");
		}
	}
} import java.io.FileNotFoundException; FileNotFoundException java.io import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws FileNotFoundException {

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		sc.close();

		char[] s = S.toCharArray();

		boolean flg = true;

		for(int i=0;i<S.length()-1;i++) {
			if(s[i]==s[i+1]) {
				flg = false;
			}
		}
		if(flg) {
			System.out.println("Good");
		} else {
			System.out.println("Bad");
		}
	}
} Main public static void main(String[] args) throws FileNotFoundException {

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		sc.close();

		char[] s = S.toCharArray();

		boolean flg = true;

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

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		sc.close();

		char[] s = S.toCharArray();

		boolean flg = true;

		for(int i=0;i<S.length()-1;i++) {
			if(s[i]==s[i+1]) {
				flg = false;
			}
		}
		if(flg) {
			System.out.println("Good");
		} else {
			System.out.println("Bad");
		}
	} 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[] s = S.toCharArray(); s S.toCharArray() S.toCharArray S boolean flg = true; flg true for(int i=0;i<S.length()-1;i++) {
			if(s[i]==s[i+1]) {
				flg = false;
			}
		} int i=0; int i=0; i 0 i<S.length()-1 i S.length()-1 S.length() S.length S 1 i++ i++ i {
			if(s[i]==s[i+1]) {
				flg = false;
			}
		} {
			if(s[i]==s[i+1]) {
				flg = false;
			}
		} if(s[i]==s[i+1]) {
				flg = false;
			} s[i]==s[i+1] s[i] s i s[i+1] s i+1 i 1 {
				flg = false;
			} flg = false flg false if(flg) {
			System.out.println("Good");
		} else {
			System.out.println("Bad");
		} flg {
			System.out.println("Good");
		} System.out.println("Good") System.out.println System.out System System.out "Good" {
			System.out.println("Bad");
		} System.out.println("Bad") System.out.println System.out System System.out "Bad" String[] args args public class Main {
	public static void main(String[] args) throws FileNotFoundException {

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		sc.close();

		char[] s = S.toCharArray();

		boolean flg = true;

		for(int i=0;i<S.length()-1;i++) {
			if(s[i]==s[i+1]) {
				flg = false;
			}
		}
		if(flg) {
			System.out.println("Good");
		} else {
			System.out.println("Bad");
		}
	}
} public class Main {
	public static void main(String[] args) throws FileNotFoundException {

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		sc.close();

		char[] s = S.toCharArray();

		boolean flg = true;

		for(int i=0;i<S.length()-1;i++) {
			if(s[i]==s[i+1]) {
				flg = false;
			}
		}
		if(flg) {
			System.out.println("Good");
		} else {
			System.out.println("Bad");
		}
	}
} Main
import java.io.FileNotFoundException;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws FileNotFoundException {

		//    	File file = new File("src/in.txt");
		//    	Scanner sc = new Scanner(file);

		Scanner sc = new Scanner(System.in);

		String S = sc.next();
		sc.close();

		char[] s = S.toCharArray();

		boolean flg = true;

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