import java.util.*;
 
public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    String str = in.nextLine();
	in.close();
    String ans = "Good";
    if (str.charAt(0) == str.charAt(1) || str.charAt(1) == str.charAt(2) || str.charAt(2) == str.charAt(3)) {
      ans = "Bad";
    }
    System.out.println(ans);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    String str = in.nextLine();
	in.close();
    String ans = "Good";
    if (str.charAt(0) == str.charAt(1) || str.charAt(1) == str.charAt(2) || str.charAt(2) == str.charAt(3)) {
      ans = "Bad";
    }
    System.out.println(ans);
  }
} Main public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    String str = in.nextLine();
	in.close();
    String ans = "Good";
    if (str.charAt(0) == str.charAt(1) || str.charAt(1) == str.charAt(2) || str.charAt(2) == str.charAt(3)) {
      ans = "Bad";
    }
    System.out.println(ans);
  } main {
    Scanner in = new Scanner(System.in);
    String str = in.nextLine();
	in.close();
    String ans = "Good";
    if (str.charAt(0) == str.charAt(1) || str.charAt(1) == str.charAt(2) || str.charAt(2) == str.charAt(3)) {
      ans = "Bad";
    }
    System.out.println(ans);
  } Scanner in = new Scanner(System.in); in new Scanner(System.in) String str = in.nextLine(); str in.nextLine() in.nextLine in in.close() in.close in String ans = "Good"; ans "Good" if (str.charAt(0) == str.charAt(1) || str.charAt(1) == str.charAt(2) || str.charAt(2) == str.charAt(3)) {
      ans = "Bad";
    } str.charAt(0) == str.charAt(1) || str.charAt(1) == str.charAt(2) || str.charAt(2) == str.charAt(3) str.charAt(0) == str.charAt(1) || str.charAt(1) == str.charAt(2) || str.charAt(2) == str.charAt(3) str.charAt(0) == str.charAt(1) str.charAt(0) str.charAt str 0 str.charAt(1) str.charAt str 1 str.charAt(1) == str.charAt(2) str.charAt(1) str.charAt str 1 str.charAt(2) str.charAt str 2 str.charAt(2) == str.charAt(3) str.charAt(2) str.charAt str 2 str.charAt(3) str.charAt str 3 {
      ans = "Bad";
    } 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 in = new Scanner(System.in);
    String str = in.nextLine();
	in.close();
    String ans = "Good";
    if (str.charAt(0) == str.charAt(1) || str.charAt(1) == str.charAt(2) || str.charAt(2) == str.charAt(3)) {
      ans = "Bad";
    }
    System.out.println(ans);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    String str = in.nextLine();
	in.close();
    String ans = "Good";
    if (str.charAt(0) == str.charAt(1) || str.charAt(1) == str.charAt(2) || str.charAt(2) == str.charAt(3)) {
      ans = "Bad";
    }
    System.out.println(ans);
  }
} Main
import java.util.*;
 
public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    String str = in.nextLine();
	in.close();
    String ans = "Good";
    if (str.charAt(0) == str.charAt(1) || str.charAt(1) == str.charAt(2) || str.charAt(2) == str.charAt(3)) {
      ans = "Bad";
    }
    System.out.println(ans);
  }
}