import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		char before = 0;
		for(int i = 0 ; i < s.length() ; i++) {
			char hoge = s.charAt(i);
			if(before == hoge) {
				System.out.println("Bad");
				System.exit(0);
			}
			before = hoge;
		}
		System.out.println("Good");

		sc.close();

	}

} 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 before = 0;
		for(int i = 0 ; i < s.length() ; i++) {
			char hoge = s.charAt(i);
			if(before == hoge) {
				System.out.println("Bad");
				System.exit(0);
			}
			before = hoge;
		}
		System.out.println("Good");

		sc.close();

	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		char before = 0;
		for(int i = 0 ; i < s.length() ; i++) {
			char hoge = s.charAt(i);
			if(before == hoge) {
				System.out.println("Bad");
				System.exit(0);
			}
			before = hoge;
		}
		System.out.println("Good");

		sc.close();

	} main {

		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		char before = 0;
		for(int i = 0 ; i < s.length() ; i++) {
			char hoge = s.charAt(i);
			if(before == hoge) {
				System.out.println("Bad");
				System.exit(0);
			}
			before = hoge;
		}
		System.out.println("Good");

		sc.close();

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc char before = 0; before 0 for(int i = 0 ; i < s.length() ; i++) {
			char hoge = s.charAt(i);
			if(before == hoge) {
				System.out.println("Bad");
				System.exit(0);
			}
			before = hoge;
		} int i = 0 ; int i = 0 ; i 0 i < s.length() i s.length() s.length s i++ i++ i {
			char hoge = s.charAt(i);
			if(before == hoge) {
				System.out.println("Bad");
				System.exit(0);
			}
			before = hoge;
		} {
			char hoge = s.charAt(i);
			if(before == hoge) {
				System.out.println("Bad");
				System.exit(0);
			}
			before = hoge;
		} char hoge = s.charAt(i); hoge s.charAt(i) s.charAt s i if(before == hoge) {
				System.out.println("Bad");
				System.exit(0);
			} before == hoge before hoge {
				System.out.println("Bad");
				System.exit(0);
			} System.out.println("Bad") System.out.println System.out System System.out "Bad" System.exit(0) System.exit System 0 before = hoge before hoge System.out.println("Good") System.out.println System.out System System.out "Good" sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		char before = 0;
		for(int i = 0 ; i < s.length() ; i++) {
			char hoge = s.charAt(i);
			if(before == hoge) {
				System.out.println("Bad");
				System.exit(0);
			}
			before = hoge;
		}
		System.out.println("Good");

		sc.close();

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		char before = 0;
		for(int i = 0 ; i < s.length() ; i++) {
			char hoge = s.charAt(i);
			if(before == hoge) {
				System.out.println("Bad");
				System.exit(0);
			}
			before = hoge;
		}
		System.out.println("Good");

		sc.close();

	}

} 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 before = 0;
		for(int i = 0 ; i < s.length() ; i++) {
			char hoge = s.charAt(i);
			if(before == hoge) {
				System.out.println("Bad");
				System.exit(0);
			}
			before = hoge;
		}
		System.out.println("Good");

		sc.close();

	}

}
