import java.util.Scanner;

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



} 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[] splitArray = S.split("");
    String kekka = "Good"; 
    
    for(int i=0;i<splitArray.length-1;i++){
      if(splitArray[i].equals(splitArray[i+1])){
        kekka = "Bad";
      }
    }
    
    System.out.println(kekka);
  }



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



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



} 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[] splitArray = S.split("");
    String kekka = "Good"; 
    
    for(int i=0;i<splitArray.length-1;i++){
      if(splitArray[i].equals(splitArray[i+1])){
        kekka = "Bad";
      }
    }
    
    System.out.println(kekka);
  }



}