import java.util.*;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    char[] c = new char[4];

    for(int i = 0;i < 4;i++) {
      c[i] = s.charAt(i);
    }

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

  }

} import java.util.*; util.* java public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    char[] c = new char[4];

    for(int i = 0;i < 4;i++) {
      c[i] = s.charAt(i);
    }

    if(c[0] == c[1] || c[1] == c[2] || c[2] == c[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();
    char[] c = new char[4];

    for(int i = 0;i < 4;i++) {
      c[i] = s.charAt(i);
    }

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

  } main {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    char[] c = new char[4];

    for(int i = 0;i < 4;i++) {
      c[i] = s.charAt(i);
    }

    if(c[0] == c[1] || c[1] == c[2] || c[2] == c[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 char[] c = new char[4]; c new char[4] 4 for(int i = 0;i < 4;i++) {
      c[i] = s.charAt(i);
    } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
      c[i] = s.charAt(i);
    } {
      c[i] = s.charAt(i);
    } c[i] = s.charAt(i) c[i] c i s.charAt(i) s.charAt s i if(c[0] == c[1] || c[1] == c[2] || c[2] == c[3]) {
      System.out.println("Bad");
    } else {
      System.out.println("Good");
    } c[0] == c[1] || c[1] == c[2] || c[2] == c[3] c[0] == c[1] || c[1] == c[2] || c[2] == c[3] c[0] == c[1] c[0] c 0 c[1] c 1 c[1] == c[2] c[1] c 1 c[2] c 2 c[2] == c[3] c[2] c 2 c[3] c 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();
    char[] c = new char[4];

    for(int i = 0;i < 4;i++) {
      c[i] = s.charAt(i);
    }

    if(c[0] == c[1] || c[1] == c[2] || c[2] == c[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();
    char[] c = new char[4];

    for(int i = 0;i < 4;i++) {
      c[i] = s.charAt(i);
    }

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

  }

} Main
import java.util.*;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    char[] c = new char[4];

    for(int i = 0;i < 4;i++) {
      c[i] = s.charAt(i);
    }

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

  }

}
