import java.util.Scanner;

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

        int count = 0;
        for(int i = 0;i < 3;i++){
            if(A[i] == A[i+1]){
                count++;
            }
        }
        if(count > 0){
            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 S = sc.next();
        char A[] = S.toCharArray();

        int count = 0;
        for(int i = 0;i < 3;i++){
            if(A[i] == A[i+1]){
                count++;
            }
        }
        if(count > 0){
            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 A[] = S.toCharArray();

        int count = 0;
        for(int i = 0;i < 3;i++){
            if(A[i] == A[i+1]){
                count++;
            }
        }
        if(count > 0){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }

    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        char A[] = S.toCharArray();

        int count = 0;
        for(int i = 0;i < 3;i++){
            if(A[i] == A[i+1]){
                count++;
            }
        }
        if(count > 0){
            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 A[] = S.toCharArray(); A S.toCharArray() S.toCharArray S int count = 0; count 0 for(int i = 0;i < 3;i++){
            if(A[i] == A[i+1]){
                count++;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            if(A[i] == A[i+1]){
                count++;
            }
        } {
            if(A[i] == A[i+1]){
                count++;
            }
        } if(A[i] == A[i+1]){
                count++;
            } A[i] == A[i+1] A[i] A i A[i+1] A i+1 i 1 {
                count++;
            } count++ count if(count > 0){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        } count > 0 count 0 {
            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 S = sc.next();
        char A[] = S.toCharArray();

        int count = 0;
        for(int i = 0;i < 3;i++){
            if(A[i] == A[i+1]){
                count++;
            }
        }
        if(count > 0){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }

    }
}