import java.util.*;
import java.util.stream.*;

public class Main {

  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    char[] s = in.nextLine().toCharArray();
    if (s[0] != s[1] && s[1] != s[2] && s[2] != s[3]) {
      System.out.println("Good");
    } else {
      System.out.println("Bad");
    }
  }
} import java.util.*; util.* java import java.util.stream.*; stream.* java.util public class Main {

  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    char[] s = in.nextLine().toCharArray();
    if (s[0] != s[1] && s[1] != s[2] && s[2] != s[3]) {
      System.out.println("Good");
    } else {
      System.out.println("Bad");
    }
  }
} Main public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    char[] s = in.nextLine().toCharArray();
    if (s[0] != s[1] && s[1] != s[2] && s[2] != s[3]) {
      System.out.println("Good");
    } else {
      System.out.println("Bad");
    }
  } main {
    Scanner in = new Scanner(System.in);
    char[] s = in.nextLine().toCharArray();
    if (s[0] != s[1] && s[1] != s[2] && s[2] != s[3]) {
      System.out.println("Good");
    } else {
      System.out.println("Bad");
    }
  } Scanner in = new Scanner(System.in); in new Scanner(System.in) char[] s = in.nextLine().toCharArray(); s in.nextLine().toCharArray() in.nextLine().toCharArray in.nextLine() in.nextLine in if (s[0] != s[1] && s[1] != s[2] && s[2] != s[3]) {
      System.out.println("Good");
    } else {
      System.out.println("Bad");
    } s[0] != s[1] && s[1] != s[2] && s[2] != s[3] s[0] != s[1] && s[1] != s[2] && s[2] != s[3] s[0] != s[1] s[0] s 0 s[1] s 1 s[1] != s[2] s[1] s 1 s[2] s 2 s[2] != s[3] s[2] s 2 s[3] s 3 {
      System.out.println("Good");
    } System.out.println("Good") System.out.println System.out System System.out "Good" {
      System.out.println("Bad");
    } System.out.println("Bad") System.out.println System.out System System.out "Bad" String[] args args public class Main {

  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    char[] s = in.nextLine().toCharArray();
    if (s[0] != s[1] && s[1] != s[2] && s[2] != s[3]) {
      System.out.println("Good");
    } else {
      System.out.println("Bad");
    }
  }
} public class Main {

  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    char[] s = in.nextLine().toCharArray();
    if (s[0] != s[1] && s[1] != s[2] && s[2] != s[3]) {
      System.out.println("Good");
    } else {
      System.out.println("Bad");
    }
  }
} Main
import java.util.*;
import java.util.stream.*;

public class Main {

  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    char[] s = in.nextLine().toCharArray();
    if (s[0] != s[1] && s[1] != s[2] && s[2] != s[3]) {
      System.out.println("Good");
    } else {
      System.out.println("Bad");
    }
  }
}
