import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		String temp = s.substring(0, 1);

		int len = s.length();
		int i;
		for(i = 1; i < len; i++) {
			if(temp.equals(s.substring(i, i + 1))){
				System.out.println("Bad");
				return;
			}else {

				temp = s.substring(i, i + 1);
			}
		}
		System.out.println("Good");
	}
} 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();
		String temp = s.substring(0, 1);

		int len = s.length();
		int i;
		for(i = 1; i < len; i++) {
			if(temp.equals(s.substring(i, i + 1))){
				System.out.println("Bad");
				return;
			}else {

				temp = s.substring(i, i + 1);
			}
		}
		System.out.println("Good");
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		String temp = s.substring(0, 1);

		int len = s.length();
		int i;
		for(i = 1; i < len; i++) {
			if(temp.equals(s.substring(i, i + 1))){
				System.out.println("Bad");
				return;
			}else {

				temp = s.substring(i, i + 1);
			}
		}
		System.out.println("Good");
	} main {
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		String temp = s.substring(0, 1);

		int len = s.length();
		int i;
		for(i = 1; i < len; i++) {
			if(temp.equals(s.substring(i, i + 1))){
				System.out.println("Bad");
				return;
			}else {

				temp = s.substring(i, i + 1);
			}
		}
		System.out.println("Good");
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.next(); s scan.next() scan.next scan String temp = s.substring(0, 1); temp s.substring(0, 1) s.substring s 0 1 int len = s.length(); len s.length() s.length s int i; i for(i = 1; i < len; i++) {
			if(temp.equals(s.substring(i, i + 1))){
				System.out.println("Bad");
				return;
			}else {

				temp = s.substring(i, i + 1);
			}
		} i = 1; i = 1 i 1 i < len i len i++ i++ i {
			if(temp.equals(s.substring(i, i + 1))){
				System.out.println("Bad");
				return;
			}else {

				temp = s.substring(i, i + 1);
			}
		} {
			if(temp.equals(s.substring(i, i + 1))){
				System.out.println("Bad");
				return;
			}else {

				temp = s.substring(i, i + 1);
			}
		} if(temp.equals(s.substring(i, i + 1))){
				System.out.println("Bad");
				return;
			}else {

				temp = s.substring(i, i + 1);
			} temp.equals(s.substring(i, i + 1)) temp.equals temp s.substring(i, i + 1) s.substring s i i + 1 i 1 {
				System.out.println("Bad");
				return;
			} System.out.println("Bad") System.out.println System.out System System.out "Bad" return; {

				temp = s.substring(i, i + 1);
			} temp = s.substring(i, i + 1) temp s.substring(i, i + 1) s.substring s i i + 1 i 1 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 scan = new Scanner(System.in);
		String s = scan.next();
		String temp = s.substring(0, 1);

		int len = s.length();
		int i;
		for(i = 1; i < len; i++) {
			if(temp.equals(s.substring(i, i + 1))){
				System.out.println("Bad");
				return;
			}else {

				temp = s.substring(i, i + 1);
			}
		}
		System.out.println("Good");
	}
} public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		String temp = s.substring(0, 1);

		int len = s.length();
		int i;
		for(i = 1; i < len; i++) {
			if(temp.equals(s.substring(i, i + 1))){
				System.out.println("Bad");
				return;
			}else {

				temp = s.substring(i, i + 1);
			}
		}
		System.out.println("Good");
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		String temp = s.substring(0, 1);

		int len = s.length();
		int i;
		for(i = 1; i < len; i++) {
			if(temp.equals(s.substring(i, i + 1))){
				System.out.println("Bad");
				return;
			}else {

				temp = s.substring(i, i + 1);
			}
		}
		System.out.println("Good");
	}
}
