import java.util.Scanner;

/**
 * @author author
 *
 */
public class Main {

  public static void main(String argus[]) {

    Scanner sc = new Scanner(System.in);
    String[] number = sc.next().split("");
   
    for (int i = 0; i < number.length - 1; i++) {
      if (number[i].equals(number[i + 1])) {
        System.out.println("Bad");
        return;
      }
    }
    
    System.out.println("Good");
  }
} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String argus[]) {

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

    Scanner sc = new Scanner(System.in);
    String[] number = sc.next().split("");
   
    for (int i = 0; i < number.length - 1; i++) {
      if (number[i].equals(number[i + 1])) {
        System.out.println("Bad");
        return;
      }
    }
    
    System.out.println("Good");
  } main {

    Scanner sc = new Scanner(System.in);
    String[] number = sc.next().split("");
   
    for (int i = 0; i < number.length - 1; i++) {
      if (number[i].equals(number[i + 1])) {
        System.out.println("Bad");
        return;
      }
    }
    
    System.out.println("Good");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] number = sc.next().split(""); number sc.next().split("") sc.next().split sc.next() sc.next sc "" for (int i = 0; i < number.length - 1; i++) {
      if (number[i].equals(number[i + 1])) {
        System.out.println("Bad");
        return;
      }
    } int i = 0; int i = 0; i 0 i < number.length - 1 i number.length - 1 number.length number number.length 1 i++ i++ i {
      if (number[i].equals(number[i + 1])) {
        System.out.println("Bad");
        return;
      }
    } {
      if (number[i].equals(number[i + 1])) {
        System.out.println("Bad");
        return;
      }
    } if (number[i].equals(number[i + 1])) {
        System.out.println("Bad");
        return;
      } number[i].equals(number[i + 1]) number[i].equals number[i] number i number[i + 1] number 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 argus[] argus public class Main {

  public static void main(String argus[]) {

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

  public static void main(String argus[]) {

    Scanner sc = new Scanner(System.in);
    String[] number = sc.next().split("");
   
    for (int i = 0; i < number.length - 1; i++) {
      if (number[i].equals(number[i + 1])) {
        System.out.println("Bad");
        return;
      }
    }
    
    System.out.println("Good");
  }
} Main
import java.util.Scanner;

/**
 * @author author
 *
 */
public class Main {

  public static void main(String argus[]) {

    Scanner sc = new Scanner(System.in);
    String[] number = sc.next().split("");
   
    for (int i = 0; i < number.length - 1; i++) {
      if (number[i].equals(number[i + 1])) {
        System.out.println("Bad");
        return;
      }
    }
    
    System.out.println("Good");
  }
}
