import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

	String s = sc.next();
	
	char c0 = s.charAt(0);
	char c1 = s.charAt(1);
	char c2 = s.charAt(2);
	char c3 = s.charAt(3);
	
	String result = "Good";
	
	if (c0 == c1) {
		result = "Bad";
	}
	if (c1 == c2) {
		result = "Bad";
	}
	if (c2 == c3) {
		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();
	
	char c0 = s.charAt(0);
	char c1 = s.charAt(1);
	char c2 = s.charAt(2);
	char c3 = s.charAt(3);
	
	String result = "Good";
	
	if (c0 == c1) {
		result = "Bad";
	}
	if (c1 == c2) {
		result = "Bad";
	}
	if (c2 == c3) {
		result = "Bad";
	}

    System.out.println(result);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

	String s = sc.next();
	
	char c0 = s.charAt(0);
	char c1 = s.charAt(1);
	char c2 = s.charAt(2);
	char c3 = s.charAt(3);
	
	String result = "Good";
	
	if (c0 == c1) {
		result = "Bad";
	}
	if (c1 == c2) {
		result = "Bad";
	}
	if (c2 == c3) {
		result = "Bad";
	}

    System.out.println(result);
  } main {
    Scanner sc = new Scanner(System.in);

	String s = sc.next();
	
	char c0 = s.charAt(0);
	char c1 = s.charAt(1);
	char c2 = s.charAt(2);
	char c3 = s.charAt(3);
	
	String result = "Good";
	
	if (c0 == c1) {
		result = "Bad";
	}
	if (c1 == c2) {
		result = "Bad";
	}
	if (c2 == c3) {
		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 char c0 = s.charAt(0); c0 s.charAt(0) s.charAt s 0 char c1 = s.charAt(1); c1 s.charAt(1) s.charAt s 1 char c2 = s.charAt(2); c2 s.charAt(2) s.charAt s 2 char c3 = s.charAt(3); c3 s.charAt(3) s.charAt s 3 String result = "Good"; result "Good" if (c0 == c1) {
		result = "Bad";
	} c0 == c1 c0 c1 {
		result = "Bad";
	} result = "Bad" result "Bad" if (c1 == c2) {
		result = "Bad";
	} c1 == c2 c1 c2 {
		result = "Bad";
	} result = "Bad" result "Bad" if (c2 == c3) {
		result = "Bad";
	} c2 == c3 c2 c3 {
		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();
	
	char c0 = s.charAt(0);
	char c1 = s.charAt(1);
	char c2 = s.charAt(2);
	char c3 = s.charAt(3);
	
	String result = "Good";
	
	if (c0 == c1) {
		result = "Bad";
	}
	if (c1 == c2) {
		result = "Bad";
	}
	if (c2 == c3) {
		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();
	
	char c0 = s.charAt(0);
	char c1 = s.charAt(1);
	char c2 = s.charAt(2);
	char c3 = s.charAt(3);
	
	String result = "Good";
	
	if (c0 == c1) {
		result = "Bad";
	}
	if (c1 == c2) {
		result = "Bad";
	}
	if (c2 == c3) {
		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();
	
	char c0 = s.charAt(0);
	char c1 = s.charAt(1);
	char c2 = s.charAt(2);
	char c3 = s.charAt(3);
	
	String result = "Good";
	
	if (c0 == c1) {
		result = "Bad";
	}
	if (c1 == c2) {
		result = "Bad";
	}
	if (c2 == c3) {
		result = "Bad";
	}

    System.out.println(result);
  }
}

