import java.util.Scanner;

public class Main{

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

        // input
        char[] input = scan.next().toCharArray();

        // search
        String answer = "Good";
        char temp = input[0];
        for(int i = 1; i < 4; i++){
            if(temp == input[i]){
                answer = "Bad";
                break;
            } else {
                temp = input[i];
            }
        }

        // answer
        System.out.println(answer);

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

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

        // input
        char[] input = scan.next().toCharArray();

        // search
        String answer = "Good";
        char temp = input[0];
        for(int i = 1; i < 4; i++){
            if(temp == input[i]){
                answer = "Bad";
                break;
            } else {
                temp = input[i];
            }
        }

        // answer
        System.out.println(answer);

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

        // input
        char[] input = scan.next().toCharArray();

        // search
        String answer = "Good";
        char temp = input[0];
        for(int i = 1; i < 4; i++){
            if(temp == input[i]){
                answer = "Bad";
                break;
            } else {
                temp = input[i];
            }
        }

        // answer
        System.out.println(answer);

    } main {
        Scanner scan = new Scanner(System.in);

        // input
        char[] input = scan.next().toCharArray();

        // search
        String answer = "Good";
        char temp = input[0];
        for(int i = 1; i < 4; i++){
            if(temp == input[i]){
                answer = "Bad";
                break;
            } else {
                temp = input[i];
            }
        }

        // answer
        System.out.println(answer);

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) char[] input = scan.next().toCharArray(); input scan.next().toCharArray() scan.next().toCharArray scan.next() scan.next scan String answer = "Good"; answer "Good" char temp = input[0]; temp input[0] input 0 for(int i = 1; i < 4; i++){
            if(temp == input[i]){
                answer = "Bad";
                break;
            } else {
                temp = input[i];
            }
        } int i = 1; int i = 1; i 1 i < 4 i 4 i++ i++ i {
            if(temp == input[i]){
                answer = "Bad";
                break;
            } else {
                temp = input[i];
            }
        } {
            if(temp == input[i]){
                answer = "Bad";
                break;
            } else {
                temp = input[i];
            }
        } if(temp == input[i]){
                answer = "Bad";
                break;
            } else {
                temp = input[i];
            } temp == input[i] temp input[i] input i {
                answer = "Bad";
                break;
            } answer = "Bad" answer "Bad" break; {
                temp = input[i];
            } temp = input[i] temp input[i] input i System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main{

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

        // input
        char[] input = scan.next().toCharArray();

        // search
        String answer = "Good";
        char temp = input[0];
        for(int i = 1; i < 4; i++){
            if(temp == input[i]){
                answer = "Bad";
                break;
            } else {
                temp = input[i];
            }
        }

        // answer
        System.out.println(answer);

    }
} public class Main{

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

        // input
        char[] input = scan.next().toCharArray();

        // search
        String answer = "Good";
        char temp = input[0];
        for(int i = 1; i < 4; i++){
            if(temp == input[i]){
                answer = "Bad";
                break;
            } else {
                temp = input[i];
            }
        }

        // answer
        System.out.println(answer);

    }
} Main
import java.util.Scanner;

public class Main{

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

        // input
        char[] input = scan.next().toCharArray();

        // search
        String answer = "Good";
        char temp = input[0];
        for(int i = 1; i < 4; i++){
            if(temp == input[i]){
                answer = "Bad";
                break;
            } else {
                temp = input[i];
            }
        }

        // answer
        System.out.println(answer);

    }
}