import java.util.*;

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

        String userInput = sc.nextLine();

        String[] splitedUserInput = userInput.split("");
        String resultCd = "Good";
        for(int i = 0; i < splitedUserInput.length - 1; i++){
            if(splitedUserInput[i].equals(splitedUserInput[i+1])){
                resultCd = "Bad";
            }
        }

        System.out.println(resultCd);
    }
} import java.util.*; util.* java public class  Main{
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);

        String userInput = sc.nextLine();

        String[] splitedUserInput = userInput.split("");
        String resultCd = "Good";
        for(int i = 0; i < splitedUserInput.length - 1; i++){
            if(splitedUserInput[i].equals(splitedUserInput[i+1])){
                resultCd = "Bad";
            }
        }

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

        String userInput = sc.nextLine();

        String[] splitedUserInput = userInput.split("");
        String resultCd = "Good";
        for(int i = 0; i < splitedUserInput.length - 1; i++){
            if(splitedUserInput[i].equals(splitedUserInput[i+1])){
                resultCd = "Bad";
            }
        }

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

        String userInput = sc.nextLine();

        String[] splitedUserInput = userInput.split("");
        String resultCd = "Good";
        for(int i = 0; i < splitedUserInput.length - 1; i++){
            if(splitedUserInput[i].equals(splitedUserInput[i+1])){
                resultCd = "Bad";
            }
        }

        System.out.println(resultCd);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String userInput = sc.nextLine(); userInput sc.nextLine() sc.nextLine sc String[] splitedUserInput = userInput.split(""); splitedUserInput userInput.split("") userInput.split userInput "" String resultCd = "Good"; resultCd "Good" for(int i = 0; i < splitedUserInput.length - 1; i++){
            if(splitedUserInput[i].equals(splitedUserInput[i+1])){
                resultCd = "Bad";
            }
        } int i = 0; int i = 0; i 0 i < splitedUserInput.length - 1 i splitedUserInput.length - 1 splitedUserInput.length splitedUserInput splitedUserInput.length 1 i++ i++ i {
            if(splitedUserInput[i].equals(splitedUserInput[i+1])){
                resultCd = "Bad";
            }
        } {
            if(splitedUserInput[i].equals(splitedUserInput[i+1])){
                resultCd = "Bad";
            }
        } if(splitedUserInput[i].equals(splitedUserInput[i+1])){
                resultCd = "Bad";
            } splitedUserInput[i].equals(splitedUserInput[i+1]) splitedUserInput[i].equals splitedUserInput[i] splitedUserInput i splitedUserInput[i+1] splitedUserInput i+1 i 1 {
                resultCd = "Bad";
            } resultCd = "Bad" resultCd "Bad" System.out.println(resultCd) System.out.println System.out System System.out resultCd String... args args public class  Main{
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);

        String userInput = sc.nextLine();

        String[] splitedUserInput = userInput.split("");
        String resultCd = "Good";
        for(int i = 0; i < splitedUserInput.length - 1; i++){
            if(splitedUserInput[i].equals(splitedUserInput[i+1])){
                resultCd = "Bad";
            }
        }

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

        String userInput = sc.nextLine();

        String[] splitedUserInput = userInput.split("");
        String resultCd = "Good";
        for(int i = 0; i < splitedUserInput.length - 1; i++){
            if(splitedUserInput[i].equals(splitedUserInput[i+1])){
                resultCd = "Bad";
            }
        }

        System.out.println(resultCd);
    }
} Main
import java.util.*;

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

        String userInput = sc.nextLine();

        String[] splitedUserInput = userInput.split("");
        String resultCd = "Good";
        for(int i = 0; i < splitedUserInput.length - 1; i++){
            if(splitedUserInput[i].equals(splitedUserInput[i+1])){
                resultCd = "Bad";
            }
        }

        System.out.println(resultCd);
    }
}