import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String ss[] = new String[4];
    for(int i = 0;i<4;i++){
      ss[i] = s.substring(i,i+1);
    }
    for(int i = 0;i<3;i++){
      if(ss[i].equals(ss[i+1])){
        System.out.println("Bad");
        return ;
      }
    }
    System.out.println("Good");
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String ss[] = new String[4];
    for(int i = 0;i<4;i++){
      ss[i] = s.substring(i,i+1);
    }
    for(int i = 0;i<3;i++){
      if(ss[i].equals(ss[i+1])){
        System.out.println("Bad");
        return ;
      }
    }
    System.out.println("Good");
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String ss[] = new String[4];
    for(int i = 0;i<4;i++){
      ss[i] = s.substring(i,i+1);
    }
    for(int i = 0;i<3;i++){
      if(ss[i].equals(ss[i+1])){
        System.out.println("Bad");
        return ;
      }
    }
    System.out.println("Good");
  } main {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String ss[] = new String[4];
    for(int i = 0;i<4;i++){
      ss[i] = s.substring(i,i+1);
    }
    for(int i = 0;i<3;i++){
      if(ss[i].equals(ss[i+1])){
        System.out.println("Bad");
        return ;
      }
    }
    System.out.println("Good");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String ss[] = new String[4]; ss new String[4] 4 for(int i = 0;i<4;i++){
      ss[i] = s.substring(i,i+1);
    } int i = 0; int i = 0; i 0 i<4 i 4 i++ i++ i {
      ss[i] = s.substring(i,i+1);
    } {
      ss[i] = s.substring(i,i+1);
    } ss[i] = s.substring(i,i+1) ss[i] ss i s.substring(i,i+1) s.substring s i i+1 i 1 for(int i = 0;i<3;i++){
      if(ss[i].equals(ss[i+1])){
        System.out.println("Bad");
        return ;
      }
    } int i = 0; int i = 0; i 0 i<3 i 3 i++ i++ i {
      if(ss[i].equals(ss[i+1])){
        System.out.println("Bad");
        return ;
      }
    } {
      if(ss[i].equals(ss[i+1])){
        System.out.println("Bad");
        return ;
      }
    } if(ss[i].equals(ss[i+1])){
        System.out.println("Bad");
        return ;
      } ss[i].equals(ss[i+1]) ss[i].equals ss[i] ss i ss[i+1] ss i+1 i 1 {
        System.out.println("Bad");
        return ;
      } System.out.println("Bad") System.out.println System.out System System.out "Bad" return ; 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){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String ss[] = new String[4];
    for(int i = 0;i<4;i++){
      ss[i] = s.substring(i,i+1);
    }
    for(int i = 0;i<3;i++){
      if(ss[i].equals(ss[i+1])){
        System.out.println("Bad");
        return ;
      }
    }
    System.out.println("Good");
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String ss[] = new String[4];
    for(int i = 0;i<4;i++){
      ss[i] = s.substring(i,i+1);
    }
    for(int i = 0;i<3;i++){
      if(ss[i].equals(ss[i+1])){
        System.out.println("Bad");
        return ;
      }
    }
    System.out.println("Good");
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String ss[] = new String[4];
    for(int i = 0;i<4;i++){
      ss[i] = s.substring(i,i+1);
    }
    for(int i = 0;i<3;i++){
      if(ss[i].equals(ss[i+1])){
        System.out.println("Bad");
        return ;
      }
    }
    System.out.println("Good");
  }
}
