import java.util.Scanner;

public class Main {
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();

    char[] inArray = line.toCharArray();
    char tmp = inArray[0];
    String rtval = "Good";

    for(int i = 1; i < 4; i++) {
      if(tmp == inArray[i]){
        rtval = "Bad";
        break;
      }
      tmp = inArray[i];
    }

    System.out.println(rtval);
    sc.close();
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();

    char[] inArray = line.toCharArray();
    char tmp = inArray[0];
    String rtval = "Good";

    for(int i = 1; i < 4; i++) {
      if(tmp == inArray[i]){
        rtval = "Bad";
        break;
      }
      tmp = inArray[i];
    }

    System.out.println(rtval);
    sc.close();
  }
} Main public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();

    char[] inArray = line.toCharArray();
    char tmp = inArray[0];
    String rtval = "Good";

    for(int i = 1; i < 4; i++) {
      if(tmp == inArray[i]){
        rtval = "Bad";
        break;
      }
      tmp = inArray[i];
    }

    System.out.println(rtval);
    sc.close();
  } main {

    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();

    char[] inArray = line.toCharArray();
    char tmp = inArray[0];
    String rtval = "Good";

    for(int i = 1; i < 4; i++) {
      if(tmp == inArray[i]){
        rtval = "Bad";
        break;
      }
      tmp = inArray[i];
    }

    System.out.println(rtval);
    sc.close();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc char[] inArray = line.toCharArray(); inArray line.toCharArray() line.toCharArray line char tmp = inArray[0]; tmp inArray[0] inArray 0 String rtval = "Good"; rtval "Good" for(int i = 1; i < 4; i++) {
      if(tmp == inArray[i]){
        rtval = "Bad";
        break;
      }
      tmp = inArray[i];
    } int i = 1; int i = 1; i 1 i < 4 i 4 i++ i++ i {
      if(tmp == inArray[i]){
        rtval = "Bad";
        break;
      }
      tmp = inArray[i];
    } {
      if(tmp == inArray[i]){
        rtval = "Bad";
        break;
      }
      tmp = inArray[i];
    } if(tmp == inArray[i]){
        rtval = "Bad";
        break;
      } tmp == inArray[i] tmp inArray[i] inArray i {
        rtval = "Bad";
        break;
      } rtval = "Bad" rtval "Bad" break; tmp = inArray[i] tmp inArray[i] inArray i System.out.println(rtval) System.out.println System.out System System.out rtval sc.close() sc.close sc String[] args args public class Main {
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();

    char[] inArray = line.toCharArray();
    char tmp = inArray[0];
    String rtval = "Good";

    for(int i = 1; i < 4; i++) {
      if(tmp == inArray[i]){
        rtval = "Bad";
        break;
      }
      tmp = inArray[i];
    }

    System.out.println(rtval);
    sc.close();
  }
} public class Main {
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();

    char[] inArray = line.toCharArray();
    char tmp = inArray[0];
    String rtval = "Good";

    for(int i = 1; i < 4; i++) {
      if(tmp == inArray[i]){
        rtval = "Bad";
        break;
      }
      tmp = inArray[i];
    }

    System.out.println(rtval);
    sc.close();
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();

    char[] inArray = line.toCharArray();
    char tmp = inArray[0];
    String rtval = "Good";

    for(int i = 1; i < 4; i++) {
      if(tmp == inArray[i]){
        rtval = "Bad";
        break;
      }
      tmp = inArray[i];
    }

    System.out.println(rtval);
    sc.close();
  }
}