import java.util.*;

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

    String[] s = sc.next().split("");

    String ans = "Good";
    if (s[0].equals(s[1])) ans = "Bad";
    if (s[1].equals(s[2])) ans = "Bad";
    if (s[2].equals(s[3])) ans = "Bad";

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

    String[] s = sc.next().split("");

    String ans = "Good";
    if (s[0].equals(s[1])) ans = "Bad";
    if (s[1].equals(s[2])) ans = "Bad";
    if (s[2].equals(s[3])) ans = "Bad";

    System.out.println(ans);
  }
} Main public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);

    String[] s = sc.next().split("");

    String ans = "Good";
    if (s[0].equals(s[1])) ans = "Bad";
    if (s[1].equals(s[2])) ans = "Bad";
    if (s[2].equals(s[3])) ans = "Bad";

    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);

    String[] s = sc.next().split("");

    String ans = "Good";
    if (s[0].equals(s[1])) ans = "Bad";
    if (s[1].equals(s[2])) ans = "Bad";
    if (s[2].equals(s[3])) ans = "Bad";

    System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] s = sc.next().split(""); s sc.next().split("") sc.next().split sc.next() sc.next sc "" String ans = "Good"; ans "Good" if (s[0].equals(s[1])) ans = "Bad"; s[0].equals(s[1]) s[0].equals s[0] s 0 s[1] s 1 ans = "Bad" ans "Bad" if (s[1].equals(s[2])) ans = "Bad"; s[1].equals(s[2]) s[1].equals s[1] s 1 s[2] s 2 ans = "Bad" ans "Bad" if (s[2].equals(s[3])) ans = "Bad"; s[2].equals(s[3]) s[2].equals s[2] s 2 s[3] s 3 ans = "Bad" ans "Bad" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);

    String[] s = sc.next().split("");

    String ans = "Good";
    if (s[0].equals(s[1])) ans = "Bad";
    if (s[1].equals(s[2])) ans = "Bad";
    if (s[2].equals(s[3])) ans = "Bad";

    System.out.println(ans);
  }
} public class Main {
  public static void main (String[] args) {
    Scanner sc = new Scanner(System.in);

    String[] s = sc.next().split("");

    String ans = "Good";
    if (s[0].equals(s[1])) ans = "Bad";
    if (s[1].equals(s[2])) ans = "Bad";
    if (s[2].equals(s[3])) ans = "Bad";

    System.out.println(ans);
  }
} Main
import java.util.*;

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

    String[] s = sc.next().split("");

    String ans = "Good";
    if (s[0].equals(s[1])) ans = "Bad";
    if (s[1].equals(s[2])) ans = "Bad";
    if (s[2].equals(s[3])) ans = "Bad";

    System.out.println(ans);
  }
}
