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