import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    String[] sList = s.split("");

    for (int i = 0; i < 3; i++) {
      String current = sList[i];
      String next = sList[i+1];

      if(current.equals(next)) {
        System.out.println("Bad");
        return;
      }
    }

    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();
    String[] sList = s.split("");

    for (int i = 0; i < 3; i++) {
      String current = sList[i];
      String next = sList[i+1];

      if(current.equals(next)) {
        System.out.println("Bad");
        return;
      }
    }

    System.out.println("Good");
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    String[] sList = s.split("");

    for (int i = 0; i < 3; i++) {
      String current = sList[i];
      String next = sList[i+1];

      if(current.equals(next)) {
        System.out.println("Bad");
        return;
      }
    }

    System.out.println("Good");
  } main {
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    String[] sList = s.split("");

    for (int i = 0; i < 3; i++) {
      String current = sList[i];
      String next = sList[i+1];

      if(current.equals(next)) {
        System.out.println("Bad");
        return;
      }
    }

    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 String[] sList = s.split(""); sList s.split("") s.split s "" for (int i = 0; i < 3; i++) {
      String current = sList[i];
      String next = sList[i+1];

      if(current.equals(next)) {
        System.out.println("Bad");
        return;
      }
    } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
      String current = sList[i];
      String next = sList[i+1];

      if(current.equals(next)) {
        System.out.println("Bad");
        return;
      }
    } {
      String current = sList[i];
      String next = sList[i+1];

      if(current.equals(next)) {
        System.out.println("Bad");
        return;
      }
    } String current = sList[i]; current sList[i] sList i String next = sList[i+1]; next sList[i+1] sList i+1 i 1 if(current.equals(next)) {
        System.out.println("Bad");
        return;
      } current.equals(next) current.equals current next {
        System.out.println("Bad");
        return;
      } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; 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();
    String[] sList = s.split("");

    for (int i = 0; i < 3; i++) {
      String current = sList[i];
      String next = sList[i+1];

      if(current.equals(next)) {
        System.out.println("Bad");
        return;
      }
    }

    System.out.println("Good");
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    String[] sList = s.split("");

    for (int i = 0; i < 3; i++) {
      String current = sList[i];
      String next = sList[i+1];

      if(current.equals(next)) {
        System.out.println("Bad");
        return;
      }
    }

    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();
    String[] sList = s.split("");

    for (int i = 0; i < 3; i++) {
      String current = sList[i];
      String next = sList[i+1];

      if(current.equals(next)) {
        System.out.println("Bad");
        return;
      }
    }

    System.out.println("Good");
  }
}
