import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

class Main{
  public static void main(String args[]) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    String res = "Good";
    
	if(s.charAt(0) == s.charAt(1)){
      res = "Bad";
    }
	if(s.charAt(1) == s.charAt(2)){
      res = "Bad";
    }
	if(s.charAt(2) == s.charAt(3)){
      res = "Bad";
    }
    System.out.print(res);
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io class Main{
  public static void main(String args[]) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    String res = "Good";
    
	if(s.charAt(0) == s.charAt(1)){
      res = "Bad";
    }
	if(s.charAt(1) == s.charAt(2)){
      res = "Bad";
    }
	if(s.charAt(2) == s.charAt(3)){
      res = "Bad";
    }
    System.out.print(res);
  }
} Main public static void main(String args[]) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    String res = "Good";
    
	if(s.charAt(0) == s.charAt(1)){
      res = "Bad";
    }
	if(s.charAt(1) == s.charAt(2)){
      res = "Bad";
    }
	if(s.charAt(2) == s.charAt(3)){
      res = "Bad";
    }
    System.out.print(res);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    String res = "Good";
    
	if(s.charAt(0) == s.charAt(1)){
      res = "Bad";
    }
	if(s.charAt(1) == s.charAt(2)){
      res = "Bad";
    }
	if(s.charAt(2) == s.charAt(3)){
      res = "Bad";
    }
    System.out.print(res);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String s = br.readLine(); s br.readLine() br.readLine br String res = "Good"; res "Good" if(s.charAt(0) == s.charAt(1)){
      res = "Bad";
    } s.charAt(0) == s.charAt(1) s.charAt(0) s.charAt s 0 s.charAt(1) s.charAt s 1 {
      res = "Bad";
    } res = "Bad" res "Bad" if(s.charAt(1) == s.charAt(2)){
      res = "Bad";
    } s.charAt(1) == s.charAt(2) s.charAt(1) s.charAt s 1 s.charAt(2) s.charAt s 2 {
      res = "Bad";
    } res = "Bad" res "Bad" if(s.charAt(2) == s.charAt(3)){
      res = "Bad";
    } s.charAt(2) == s.charAt(3) s.charAt(2) s.charAt s 2 s.charAt(3) s.charAt s 3 {
      res = "Bad";
    } res = "Bad" res "Bad" System.out.print(res) System.out.print System.out System System.out res String args[] args
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

class Main{
  public static void main(String args[]) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine();
    String res = "Good";
    
	if(s.charAt(0) == s.charAt(1)){
      res = "Bad";
    }
	if(s.charAt(1) == s.charAt(2)){
      res = "Bad";
    }
	if(s.charAt(2) == s.charAt(3)){
      res = "Bad";
    }
    System.out.print(res);
  }
}