import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int[] A = new int[str.length()];

        for (int i = 0; i < str.length(); i++) {
            A[i] = str.charAt(i);
        }
        if (A[0] == A[1] || A[1] == A[2] || A[2] == A[3]) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int[] A = new int[str.length()];

        for (int i = 0; i < str.length(); i++) {
            A[i] = str.charAt(i);
        }
        if (A[0] == A[1] || A[1] == A[2] || A[2] == A[3]) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int[] A = new int[str.length()];

        for (int i = 0; i < str.length(); i++) {
            A[i] = str.charAt(i);
        }
        if (A[0] == A[1] || A[1] == A[2] || A[2] == A[3]) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int[] A = new int[str.length()];

        for (int i = 0; i < str.length(); i++) {
            A[i] = str.charAt(i);
        }
        if (A[0] == A[1] || A[1] == A[2] || A[2] == A[3]) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc int[] A = new int[str.length()]; A new int[str.length()] str.length() str.length str for (int i = 0; i < str.length(); i++) {
            A[i] = str.charAt(i);
        } int i = 0; int i = 0; i 0 i < str.length() i str.length() str.length str i++ i++ i {
            A[i] = str.charAt(i);
        } {
            A[i] = str.charAt(i);
        } A[i] = str.charAt(i) A[i] A i str.charAt(i) str.charAt str i if (A[0] == A[1] || A[1] == A[2] || A[2] == A[3]) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        } A[0] == A[1] || A[1] == A[2] || A[2] == A[3] A[0] == A[1] || A[1] == A[2] || A[2] == A[3] A[0] == A[1] A[0] A 0 A[1] A 1 A[1] == A[2] A[1] A 1 A[2] A 2 A[2] == A[3] A[2] A 2 A[3] A 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
import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int[] A = new int[str.length()];

        for (int i = 0; i < str.length(); i++) {
            A[i] = str.charAt(i);
        }
        if (A[0] == A[1] || A[1] == A[2] || A[2] == A[3]) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }
}