import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    System.out.println((S.charAt(0) != S.charAt(1) && S.charAt(1) != S.charAt(2) && S.charAt(2) != S.charAt(3)) ? "Good" : "Bad");
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    System.out.println((S.charAt(0) != S.charAt(1) && S.charAt(1) != S.charAt(2) && S.charAt(2) != S.charAt(3)) ? "Good" : "Bad");
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    System.out.println((S.charAt(0) != S.charAt(1) && S.charAt(1) != S.charAt(2) && S.charAt(2) != S.charAt(3)) ? "Good" : "Bad");
  } main {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    System.out.println((S.charAt(0) != S.charAt(1) && S.charAt(1) != S.charAt(2) && S.charAt(2) != S.charAt(3)) ? "Good" : "Bad");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc System.out.println((S.charAt(0) != S.charAt(1) && S.charAt(1) != S.charAt(2) && S.charAt(2) != S.charAt(3)) ? "Good" : "Bad") System.out.println System.out System System.out (S.charAt(0) != S.charAt(1) && S.charAt(1) != S.charAt(2) && S.charAt(2) != S.charAt(3)) ? "Good" : "Bad" (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 "Good" "Bad" String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    System.out.println((S.charAt(0) != S.charAt(1) && S.charAt(1) != S.charAt(2) && S.charAt(2) != S.charAt(3)) ? "Good" : "Bad");
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    System.out.println((S.charAt(0) != S.charAt(1) && S.charAt(1) != S.charAt(2) && S.charAt(2) != S.charAt(3)) ? "Good" : "Bad");
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    System.out.println((S.charAt(0) != S.charAt(1) && S.charAt(1) != S.charAt(2) && S.charAt(2) != S.charAt(3)) ? "Good" : "Bad");
  }
}