import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    String s = sc.next();

    if ((s.charAt(0) == s.charAt(1)) || (s.charAt(1) == s.charAt(2)) || (s.charAt(2) == s.charAt(3))) {
      System.out.println("Bad");
    } else {
      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);

    String s = sc.next();

    if ((s.charAt(0) == s.charAt(1)) || (s.charAt(1) == s.charAt(2)) || (s.charAt(2) == s.charAt(3))) {
      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();

    if ((s.charAt(0) == s.charAt(1)) || (s.charAt(1) == s.charAt(2)) || (s.charAt(2) == s.charAt(3))) {
      System.out.println("Bad");
    } else {
      System.out.println("Good");
    }

  } main {

    Scanner sc = new Scanner(System.in);

    String s = sc.next();

    if ((s.charAt(0) == s.charAt(1)) || (s.charAt(1) == s.charAt(2)) || (s.charAt(2) == s.charAt(3))) {
      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 if ((s.charAt(0) == s.charAt(1)) || (s.charAt(1) == s.charAt(2)) || (s.charAt(2) == s.charAt(3))) {
      System.out.println("Bad");
    } else {
      System.out.println("Good");
    } (s.charAt(0) == s.charAt(1)) || (s.charAt(1) == s.charAt(2)) || (s.charAt(2) == s.charAt(3)) (s.charAt(0) == s.charAt(1)) || (s.charAt(1) == s.charAt(2)) || (s.charAt(2) == s.charAt(3)) (s.charAt(0) == s.charAt(1)) s.charAt(0) s.charAt s 0 s.charAt(1) s.charAt s 1 (s.charAt(1) == s.charAt(2)) s.charAt(1) s.charAt s 1 s.charAt(2) s.charAt s 2 (s.charAt(2) == s.charAt(3)) s.charAt(2) s.charAt s 2 s.charAt(3) s.charAt s 3 {
      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();

    if ((s.charAt(0) == s.charAt(1)) || (s.charAt(1) == s.charAt(2)) || (s.charAt(2) == s.charAt(3))) {
      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();

    if ((s.charAt(0) == s.charAt(1)) || (s.charAt(1) == s.charAt(2)) || (s.charAt(2) == s.charAt(3))) {
      System.out.println("Bad");
    } else {
      System.out.println("Good");
    }

  }
} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    String s = sc.next();

    if ((s.charAt(0) == s.charAt(1)) || (s.charAt(1) == s.charAt(2)) || (s.charAt(2) == s.charAt(3))) {
      System.out.println("Bad");
    } else {
      System.out.println("Good");
    }

  }
}