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++) {
		char c0 = s.charAt(i);
		char c1 = s.charAt(i + 1);
		
		if (c0 == c1) {
			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++) {
		char c0 = s.charAt(i);
		char c1 = s.charAt(i + 1);
		
		if (c0 == c1) {
			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++) {
		char c0 = s.charAt(i);
		char c1 = s.charAt(i + 1);
		
		if (c0 == c1) {
			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++) {
		char c0 = s.charAt(i);
		char c1 = s.charAt(i + 1);
		
		if (c0 == c1) {
			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++) {
		char c0 = s.charAt(i);
		char c1 = s.charAt(i + 1);
		
		if (c0 == c1) {
			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 {
		char c0 = s.charAt(i);
		char c1 = s.charAt(i + 1);
		
		if (c0 == c1) {
			result = "Bad";
		}
	} {
		char c0 = s.charAt(i);
		char c1 = s.charAt(i + 1);
		
		if (c0 == c1) {
			result = "Bad";
		}
	} char c0 = s.charAt(i); c0 s.charAt(i) s.charAt s i char c1 = s.charAt(i + 1); c1 s.charAt(i + 1) s.charAt s i + 1 i 1 if (c0 == c1) {
			result = "Bad";
		} c0 == c1 c0 c1 {
			result = "Bad";
		} 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++) {
		char c0 = s.charAt(i);
		char c1 = s.charAt(i + 1);
		
		if (c0 == c1) {
			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++) {
		char c0 = s.charAt(i);
		char c1 = s.charAt(i + 1);
		
		if (c0 == c1) {
			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++) {
		char c0 = s.charAt(i);
		char c1 = s.charAt(i + 1);
		
		if (c0 == c1) {
			result = "Bad";
		}
	}

    System.out.println(result);
  }
}

