
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String result = "Good";
		for(int i = 0; i < s.length() - 1; i++) {
			if(s.substring(i, i + 1).equals(s.substring(i + 1, i + 2))) result = "Bad";
		}
      System.out.println(result);
	}

} 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 result = "Good";
		for(int i = 0; i < s.length() - 1; i++) {
			if(s.substring(i, i + 1).equals(s.substring(i + 1, i + 2))) result = "Bad";
		}
      System.out.println(result);
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String result = "Good";
		for(int i = 0; i < s.length() - 1; i++) {
			if(s.substring(i, i + 1).equals(s.substring(i + 1, i + 2))) result = "Bad";
		}
      System.out.println(result);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String result = "Good";
		for(int i = 0; i < s.length() - 1; i++) {
			if(s.substring(i, i + 1).equals(s.substring(i + 1, i + 2))) result = "Bad";
		}
      System.out.println(result);
	}

} 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 result = "Good";
		for(int i = 0; i < s.length() - 1; i++) {
			if(s.substring(i, i + 1).equals(s.substring(i + 1, i + 2))) result = "Bad";
		}
      System.out.println(result);
	}

}
