import java.util.*;
public class Main{
  public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      String S = sc.nextLine();
      char c ;
      char[] data = new char[4];
      for(int i = 0; i<4;i++){
        c = S.charAt(i);
        data[i] = c;
      }

      for(int i  = 0;i<3;i++){
        if(data[i]==data[i+1]){
          System.out.println("Bad");
          System.exit(0);
        }
      }
        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.nextLine();
      char c ;
      char[] data = new char[4];
      for(int i = 0; i<4;i++){
        c = S.charAt(i);
        data[i] = c;
      }

      for(int i  = 0;i<3;i++){
        if(data[i]==data[i+1]){
          System.out.println("Bad");
          System.exit(0);
        }
      }
        System.out.println("Good");
                   }
} Main public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      String S = sc.nextLine();
      char c ;
      char[] data = new char[4];
      for(int i = 0; i<4;i++){
        c = S.charAt(i);
        data[i] = c;
      }

      for(int i  = 0;i<3;i++){
        if(data[i]==data[i+1]){
          System.out.println("Bad");
          System.exit(0);
        }
      }
        System.out.println("Good");
                   } main {
      Scanner sc = new Scanner(System.in);

      String S = sc.nextLine();
      char c ;
      char[] data = new char[4];
      for(int i = 0; i<4;i++){
        c = S.charAt(i);
        data[i] = c;
      }

      for(int i  = 0;i<3;i++){
        if(data[i]==data[i+1]){
          System.out.println("Bad");
          System.exit(0);
        }
      }
        System.out.println("Good");
                   } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.nextLine(); S sc.nextLine() sc.nextLine sc char c ; c char[] data = new char[4]; data new char[4] 4 for(int i = 0; i<4;i++){
        c = S.charAt(i);
        data[i] = c;
      } int i = 0; int i = 0; i 0 i<4 i 4 i++ i++ i {
        c = S.charAt(i);
        data[i] = c;
      } {
        c = S.charAt(i);
        data[i] = c;
      } c = S.charAt(i) c S.charAt(i) S.charAt S i data[i] = c data[i] data i c for(int i  = 0;i<3;i++){
        if(data[i]==data[i+1]){
          System.out.println("Bad");
          System.exit(0);
        }
      } int i  = 0; int i  = 0; i 0 i<3 i 3 i++ i++ i {
        if(data[i]==data[i+1]){
          System.out.println("Bad");
          System.exit(0);
        }
      } {
        if(data[i]==data[i+1]){
          System.out.println("Bad");
          System.exit(0);
        }
      } if(data[i]==data[i+1]){
          System.out.println("Bad");
          System.exit(0);
        } data[i]==data[i+1] data[i] data i data[i+1] data i+1 i 1 {
          System.out.println("Bad");
          System.exit(0);
        } System.out.println("Bad") System.out.println System.out System System.out "Bad" System.exit(0) System.exit System 0 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.nextLine();
      char c ;
      char[] data = new char[4];
      for(int i = 0; i<4;i++){
        c = S.charAt(i);
        data[i] = c;
      }

      for(int i  = 0;i<3;i++){
        if(data[i]==data[i+1]){
          System.out.println("Bad");
          System.exit(0);
        }
      }
        System.out.println("Good");
                   }
} public class Main{
  public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      String S = sc.nextLine();
      char c ;
      char[] data = new char[4];
      for(int i = 0; i<4;i++){
        c = S.charAt(i);
        data[i] = c;
      }

      for(int i  = 0;i<3;i++){
        if(data[i]==data[i+1]){
          System.out.println("Bad");
          System.exit(0);
        }
      }
        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.nextLine();
      char c ;
      char[] data = new char[4];
      for(int i = 0; i<4;i++){
        c = S.charAt(i);
        data[i] = c;
      }

      for(int i  = 0;i<3;i++){
        if(data[i]==data[i+1]){
          System.out.println("Bad");
          System.exit(0);
        }
      }
        System.out.println("Good");
                   }
}
