import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s =scan.next();
		scan.close();
		int check=1;
		for(int i=1;i<s.length();i++) {
			char c=s.charAt(i-1);
			if(s.charAt(i)==c) {
				check=0;
				break;
			}
		}
		if(check==1)System.out.println("Good");
		else System.out.println("Bad");
	}
} import java.util.Scanner; Scanner java.util public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s =scan.next();
		scan.close();
		int check=1;
		for(int i=1;i<s.length();i++) {
			char c=s.charAt(i-1);
			if(s.charAt(i)==c) {
				check=0;
				break;
			}
		}
		if(check==1)System.out.println("Good");
		else System.out.println("Bad");
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s =scan.next();
		scan.close();
		int check=1;
		for(int i=1;i<s.length();i++) {
			char c=s.charAt(i-1);
			if(s.charAt(i)==c) {
				check=0;
				break;
			}
		}
		if(check==1)System.out.println("Good");
		else System.out.println("Bad");
	} main {
		Scanner scan = new Scanner(System.in);
		String s =scan.next();
		scan.close();
		int check=1;
		for(int i=1;i<s.length();i++) {
			char c=s.charAt(i-1);
			if(s.charAt(i)==c) {
				check=0;
				break;
			}
		}
		if(check==1)System.out.println("Good");
		else System.out.println("Bad");
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s =scan.next(); s scan.next() scan.next scan scan.close() scan.close scan int check=1; check 1 for(int i=1;i<s.length();i++) {
			char c=s.charAt(i-1);
			if(s.charAt(i)==c) {
				check=0;
				break;
			}
		} int i=1; int i=1; i 1 i<s.length() i s.length() s.length s i++ i++ i {
			char c=s.charAt(i-1);
			if(s.charAt(i)==c) {
				check=0;
				break;
			}
		} {
			char c=s.charAt(i-1);
			if(s.charAt(i)==c) {
				check=0;
				break;
			}
		} char c=s.charAt(i-1); c s.charAt(i-1) s.charAt s i-1 i 1 if(s.charAt(i)==c) {
				check=0;
				break;
			} s.charAt(i)==c s.charAt(i) s.charAt s i c {
				check=0;
				break;
			} check=0 check 0 break; if(check==1)System.out.println("Good");
		else System.out.println("Bad"); check==1 check 1 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 public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s =scan.next();
		scan.close();
		int check=1;
		for(int i=1;i<s.length();i++) {
			char c=s.charAt(i-1);
			if(s.charAt(i)==c) {
				check=0;
				break;
			}
		}
		if(check==1)System.out.println("Good");
		else System.out.println("Bad");
	}
} public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s =scan.next();
		scan.close();
		int check=1;
		for(int i=1;i<s.length();i++) {
			char c=s.charAt(i-1);
			if(s.charAt(i)==c) {
				check=0;
				break;
			}
		}
		if(check==1)System.out.println("Good");
		else System.out.println("Bad");
	}
} Main
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s =scan.next();
		scan.close();
		int check=1;
		for(int i=1;i<s.length();i++) {
			char c=s.charAt(i-1);
			if(s.charAt(i)==c) {
				check=0;
				break;
			}
		}
		if(check==1)System.out.println("Good");
		else System.out.println("Bad");
	}
}