import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    char[] pin = sc.next().toCharArray();
    if (pin[0] == pin[1]) {
      System.out.println("Bad");
      return;
    }
    if (pin[1] == pin[2]) {
      System.out.println("Bad");
      return;
    }
    if (pin[2] == pin[3]) {
      System.out.println("Bad");
      return;
    }
    System.out.println("Good");
  }

} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    char[] pin = sc.next().toCharArray();
    if (pin[0] == pin[1]) {
      System.out.println("Bad");
      return;
    }
    if (pin[1] == pin[2]) {
      System.out.println("Bad");
      return;
    }
    if (pin[2] == pin[3]) {
      System.out.println("Bad");
      return;
    }
    System.out.println("Good");
  }

} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    char[] pin = sc.next().toCharArray();
    if (pin[0] == pin[1]) {
      System.out.println("Bad");
      return;
    }
    if (pin[1] == pin[2]) {
      System.out.println("Bad");
      return;
    }
    if (pin[2] == pin[3]) {
      System.out.println("Bad");
      return;
    }
    System.out.println("Good");
  } main {
    Scanner sc = new Scanner(System.in);
    char[] pin = sc.next().toCharArray();
    if (pin[0] == pin[1]) {
      System.out.println("Bad");
      return;
    }
    if (pin[1] == pin[2]) {
      System.out.println("Bad");
      return;
    }
    if (pin[2] == pin[3]) {
      System.out.println("Bad");
      return;
    }
    System.out.println("Good");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] pin = sc.next().toCharArray(); pin sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc if (pin[0] == pin[1]) {
      System.out.println("Bad");
      return;
    } pin[0] == pin[1] pin[0] pin 0 pin[1] pin 1 {
      System.out.println("Bad");
      return;
    } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; if (pin[1] == pin[2]) {
      System.out.println("Bad");
      return;
    } pin[1] == pin[2] pin[1] pin 1 pin[2] pin 2 {
      System.out.println("Bad");
      return;
    } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; if (pin[2] == pin[3]) {
      System.out.println("Bad");
      return;
    } pin[2] == pin[3] pin[2] pin 2 pin[3] pin 3 {
      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);
    char[] pin = sc.next().toCharArray();
    if (pin[0] == pin[1]) {
      System.out.println("Bad");
      return;
    }
    if (pin[1] == pin[2]) {
      System.out.println("Bad");
      return;
    }
    if (pin[2] == pin[3]) {
      System.out.println("Bad");
      return;
    }
    System.out.println("Good");
  }

} public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    char[] pin = sc.next().toCharArray();
    if (pin[0] == pin[1]) {
      System.out.println("Bad");
      return;
    }
    if (pin[1] == pin[2]) {
      System.out.println("Bad");
      return;
    }
    if (pin[2] == pin[3]) {
      System.out.println("Bad");
      return;
    }
    System.out.println("Good");
  }

} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    char[] pin = sc.next().toCharArray();
    if (pin[0] == pin[1]) {
      System.out.println("Bad");
      return;
    }
    if (pin[1] == pin[2]) {
      System.out.println("Bad");
      return;
    }
    if (pin[2] == pin[3]) {
      System.out.println("Bad");
      return;
    }
    System.out.println("Good");
  }

}