import java.util.*;

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    String Pass = sc.next();
    char Nums[]=new char[4];
    boolean result=false;
    for(int i=0;i<4;i++){
     Nums[i] =Pass.charAt(i);
    }
    for(int i=1;i<4;i++){
     if( Nums[i-1]==Nums[i]){
     	result=true;
     }
    }if(result==true){
    System.out.println("Bad");
    }else{
     System.out.println("Good");
    }
  }
  
  } import java.util.*; util.* java public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    String Pass = sc.next();
    char Nums[]=new char[4];
    boolean result=false;
    for(int i=0;i<4;i++){
     Nums[i] =Pass.charAt(i);
    }
    for(int i=1;i<4;i++){
     if( Nums[i-1]==Nums[i]){
     	result=true;
     }
    }if(result==true){
    System.out.println("Bad");
    }else{
     System.out.println("Good");
    }
  }
  
  } Main public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    String Pass = sc.next();
    char Nums[]=new char[4];
    boolean result=false;
    for(int i=0;i<4;i++){
     Nums[i] =Pass.charAt(i);
    }
    for(int i=1;i<4;i++){
     if( Nums[i-1]==Nums[i]){
     	result=true;
     }
    }if(result==true){
    System.out.println("Bad");
    }else{
     System.out.println("Good");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String Pass = sc.next();
    char Nums[]=new char[4];
    boolean result=false;
    for(int i=0;i<4;i++){
     Nums[i] =Pass.charAt(i);
    }
    for(int i=1;i<4;i++){
     if( Nums[i-1]==Nums[i]){
     	result=true;
     }
    }if(result==true){
    System.out.println("Bad");
    }else{
     System.out.println("Good");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String Pass = sc.next(); Pass sc.next() sc.next sc char Nums[]=new char[4]; Nums new char[4] 4 boolean result=false; result false for(int i=0;i<4;i++){
     Nums[i] =Pass.charAt(i);
    } int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
     Nums[i] =Pass.charAt(i);
    } {
     Nums[i] =Pass.charAt(i);
    } Nums[i] =Pass.charAt(i) Nums[i] Nums i Pass.charAt(i) Pass.charAt Pass i for(int i=1;i<4;i++){
     if( Nums[i-1]==Nums[i]){
     	result=true;
     }
    } int i=1; int i=1; i 1 i<4 i 4 i++ i++ i {
     if( Nums[i-1]==Nums[i]){
     	result=true;
     }
    } {
     if( Nums[i-1]==Nums[i]){
     	result=true;
     }
    } if( Nums[i-1]==Nums[i]){
     	result=true;
     } Nums[i-1]==Nums[i] Nums[i-1] Nums i-1 i 1 Nums[i] Nums i {
     	result=true;
     } result=true result true if(result==true){
    System.out.println("Bad");
    }else{
     System.out.println("Good");
    } result==true result true {
    System.out.println("Bad");
    } System.out.println("Bad") System.out.println System.out System System.out "Bad" {
     System.out.println("Good");
    } System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    String Pass = sc.next();
    char Nums[]=new char[4];
    boolean result=false;
    for(int i=0;i<4;i++){
     Nums[i] =Pass.charAt(i);
    }
    for(int i=1;i<4;i++){
     if( Nums[i-1]==Nums[i]){
     	result=true;
     }
    }if(result==true){
    System.out.println("Bad");
    }else{
     System.out.println("Good");
    }
  }
  
  } public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    String Pass = sc.next();
    char Nums[]=new char[4];
    boolean result=false;
    for(int i=0;i<4;i++){
     Nums[i] =Pass.charAt(i);
    }
    for(int i=1;i<4;i++){
     if( Nums[i-1]==Nums[i]){
     	result=true;
     }
    }if(result==true){
    System.out.println("Bad");
    }else{
     System.out.println("Good");
    }
  }
  
  } Main
import java.util.*;

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    String Pass = sc.next();
    char Nums[]=new char[4];
    boolean result=false;
    for(int i=0;i<4;i++){
     Nums[i] =Pass.charAt(i);
    }
    for(int i=1;i<4;i++){
     if( Nums[i-1]==Nums[i]){
     	result=true;
     }
    }if(result==true){
    System.out.println("Bad");
    }else{
     System.out.println("Good");
    }
  }
  
  }
