import java.util.Scanner;
 
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String s = sc.nextLine();
    String result = "Good";
    String[] split = s.split("",0);
    for(int i = 0;i < 3;i++){
        if(split[i].equals(split[i+1])){
          result = "Bad";
        }
    }
      System.out.println(result);
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String s = sc.nextLine();
    String result = "Good";
    String[] split = s.split("",0);
    for(int i = 0;i < 3;i++){
        if(split[i].equals(split[i+1])){
          result = "Bad";
        }
    }
      System.out.println(result);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String s = sc.nextLine();
    String result = "Good";
    String[] split = s.split("",0);
    for(int i = 0;i < 3;i++){
        if(split[i].equals(split[i+1])){
          result = "Bad";
        }
    }
      System.out.println(result);
  } main {
    Scanner sc = new Scanner(System.in);
    
    String s = sc.nextLine();
    String result = "Good";
    String[] split = s.split("",0);
    for(int i = 0;i < 3;i++){
        if(split[i].equals(split[i+1])){
          result = "Bad";
        }
    }
      System.out.println(result);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc String result = "Good"; result "Good" String[] split = s.split("",0); split s.split("",0) s.split s "" 0 for(int i = 0;i < 3;i++){
        if(split[i].equals(split[i+1])){
          result = "Bad";
        }
    } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
        if(split[i].equals(split[i+1])){
          result = "Bad";
        }
    } {
        if(split[i].equals(split[i+1])){
          result = "Bad";
        }
    } if(split[i].equals(split[i+1])){
          result = "Bad";
        } split[i].equals(split[i+1]) split[i].equals split[i] split i split[i+1] split i+1 i 1 {
          result = "Bad";
        } result = "Bad" result "Bad" System.out.println(result) System.out.println System.out System System.out result String[] args args
import java.util.Scanner;
 
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String s = sc.nextLine();
    String result = "Good";
    String[] split = s.split("",0);
    for(int i = 0;i < 3;i++){
        if(split[i].equals(split[i+1])){
          result = "Bad";
        }
    }
      System.out.println(result);
  }
}