import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String ans = "Good";
		for(int i = 0 ; i < s.length() - 1 ; i++) {
			if(s.charAt(i) == s.charAt(i + 1))
				ans = "Bad";
		}
		sc.close();
		System.out.println(ans);

	}
}
 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();
		String ans = "Good";
		for(int i = 0 ; i < s.length() - 1 ; i++) {
			if(s.charAt(i) == s.charAt(i + 1))
				ans = "Bad";
		}
		sc.close();
		System.out.println(ans);

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

		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String ans = "Good";
		for(int i = 0 ; i < s.length() - 1 ; i++) {
			if(s.charAt(i) == s.charAt(i + 1))
				ans = "Bad";
		}
		sc.close();
		System.out.println(ans);

	} main {

		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String ans = "Good";
		for(int i = 0 ; i < s.length() - 1 ; i++) {
			if(s.charAt(i) == s.charAt(i + 1))
				ans = "Bad";
		}
		sc.close();
		System.out.println(ans);

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

		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String ans = "Good";
		for(int i = 0 ; i < s.length() - 1 ; i++) {
			if(s.charAt(i) == s.charAt(i + 1))
				ans = "Bad";
		}
		sc.close();
		System.out.println(ans);

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

		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String ans = "Good";
		for(int i = 0 ; i < s.length() - 1 ; i++) {
			if(s.charAt(i) == s.charAt(i + 1))
				ans = "Bad";
		}
		sc.close();
		System.out.println(ans);

	}
} Main
import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String ans = "Good";
		for(int i = 0 ; i < s.length() - 1 ; i++) {
			if(s.charAt(i) == s.charAt(i + 1))
				ans = "Bad";
		}
		sc.close();
		System.out.println(ans);

	}
}

