import java.util.*;

public class Main {
  public static void main(String[] args) {
	  Scanner sc = new Scanner(System.in);
	  char[] S = sc.next().toCharArray();
	  
	  String output = "Good";
	  for(int i = 0; i < S.length-1; i++) {
		  if(S[i] == S[i+1]) {
			  output = "Bad";
			  break;
		  }
	  }
	  System.out.println(output);
	  
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
	  Scanner sc = new Scanner(System.in);
	  char[] S = sc.next().toCharArray();
	  
	  String output = "Good";
	  for(int i = 0; i < S.length-1; i++) {
		  if(S[i] == S[i+1]) {
			  output = "Bad";
			  break;
		  }
	  }
	  System.out.println(output);
	  
  }
} Main public static void main(String[] args) {
	  Scanner sc = new Scanner(System.in);
	  char[] S = sc.next().toCharArray();
	  
	  String output = "Good";
	  for(int i = 0; i < S.length-1; i++) {
		  if(S[i] == S[i+1]) {
			  output = "Bad";
			  break;
		  }
	  }
	  System.out.println(output);
	  
  } main {
	  Scanner sc = new Scanner(System.in);
	  char[] S = sc.next().toCharArray();
	  
	  String output = "Good";
	  for(int i = 0; i < S.length-1; i++) {
		  if(S[i] == S[i+1]) {
			  output = "Bad";
			  break;
		  }
	  }
	  System.out.println(output);
	  
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] S = sc.next().toCharArray(); S sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc String output = "Good"; output "Good" for(int i = 0; i < S.length-1; i++) {
		  if(S[i] == S[i+1]) {
			  output = "Bad";
			  break;
		  }
	  } int i = 0; int i = 0; i 0 i < S.length-1 i S.length-1 S.length S S.length 1 i++ i++ i {
		  if(S[i] == S[i+1]) {
			  output = "Bad";
			  break;
		  }
	  } {
		  if(S[i] == S[i+1]) {
			  output = "Bad";
			  break;
		  }
	  } if(S[i] == S[i+1]) {
			  output = "Bad";
			  break;
		  } S[i] == S[i+1] S[i] S i S[i+1] S i+1 i 1 {
			  output = "Bad";
			  break;
		  } output = "Bad" output "Bad" break; System.out.println(output) System.out.println System.out System System.out output String[] args args public class Main {
  public static void main(String[] args) {
	  Scanner sc = new Scanner(System.in);
	  char[] S = sc.next().toCharArray();
	  
	  String output = "Good";
	  for(int i = 0; i < S.length-1; i++) {
		  if(S[i] == S[i+1]) {
			  output = "Bad";
			  break;
		  }
	  }
	  System.out.println(output);
	  
  }
} public class Main {
  public static void main(String[] args) {
	  Scanner sc = new Scanner(System.in);
	  char[] S = sc.next().toCharArray();
	  
	  String output = "Good";
	  for(int i = 0; i < S.length-1; i++) {
		  if(S[i] == S[i+1]) {
			  output = "Bad";
			  break;
		  }
	  }
	  System.out.println(output);
	  
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
	  Scanner sc = new Scanner(System.in);
	  char[] S = sc.next().toCharArray();
	  
	  String output = "Good";
	  for(int i = 0; i < S.length-1; i++) {
		  if(S[i] == S[i+1]) {
			  output = "Bad";
			  break;
		  }
	  }
	  System.out.println(output);
	  
  }
}
