import java.util.*;
import java.io.*;

public class Main {
    public static void main(String... args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String password = null;
        try {

            password = br.readLine();
            br.close();
        } catch(IOException e) {
            e.printStackTrace();
        }

        System.out.println(isDifficultToInput(password) ? "Bad" : "Good");
    }

    private static boolean isDifficultToInput(String word){
        String[] splitWord = word.split("");

        for(int i = 0; i < splitWord.length - 1; i++){
            String rear = splitWord[i];
            String front = splitWord[i+1];
            if(front.equals(rear)){
                return true;
            }
        }
        return false;
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String... args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String password = null;
        try {

            password = br.readLine();
            br.close();
        } catch(IOException e) {
            e.printStackTrace();
        }

        System.out.println(isDifficultToInput(password) ? "Bad" : "Good");
    }

    private static boolean isDifficultToInput(String word){
        String[] splitWord = word.split("");

        for(int i = 0; i < splitWord.length - 1; i++){
            String rear = splitWord[i];
            String front = splitWord[i+1];
            if(front.equals(rear)){
                return true;
            }
        }
        return false;
    }
} Main public static void main(String... args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String password = null;
        try {

            password = br.readLine();
            br.close();
        } catch(IOException e) {
            e.printStackTrace();
        }

        System.out.println(isDifficultToInput(password) ? "Bad" : "Good");
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String password = null;
        try {

            password = br.readLine();
            br.close();
        } catch(IOException e) {
            e.printStackTrace();
        }

        System.out.println(isDifficultToInput(password) ? "Bad" : "Good");
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String password = null; password null try {

            password = br.readLine();
            br.close();
        } catch(IOException e) {
            e.printStackTrace();
        } catch(IOException e) {
            e.printStackTrace();
        } IOException e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {

            password = br.readLine();
            br.close();
        } password = br.readLine() password br.readLine() br.readLine br br.close() br.close br System.out.println(isDifficultToInput(password) ? "Bad" : "Good") System.out.println System.out System System.out isDifficultToInput(password) ? "Bad" : "Good" isDifficultToInput(password) isDifficultToInput password "Bad" "Good" String... args args private static boolean isDifficultToInput(String word){
        String[] splitWord = word.split("");

        for(int i = 0; i < splitWord.length - 1; i++){
            String rear = splitWord[i];
            String front = splitWord[i+1];
            if(front.equals(rear)){
                return true;
            }
        }
        return false;
    } isDifficultToInput {
        String[] splitWord = word.split("");

        for(int i = 0; i < splitWord.length - 1; i++){
            String rear = splitWord[i];
            String front = splitWord[i+1];
            if(front.equals(rear)){
                return true;
            }
        }
        return false;
    } String[] splitWord = word.split(""); splitWord word.split("") word.split word "" for(int i = 0; i < splitWord.length - 1; i++){
            String rear = splitWord[i];
            String front = splitWord[i+1];
            if(front.equals(rear)){
                return true;
            }
        } int i = 0; int i = 0; i 0 i < splitWord.length - 1 i splitWord.length - 1 splitWord.length splitWord splitWord.length 1 i++ i++ i {
            String rear = splitWord[i];
            String front = splitWord[i+1];
            if(front.equals(rear)){
                return true;
            }
        } {
            String rear = splitWord[i];
            String front = splitWord[i+1];
            if(front.equals(rear)){
                return true;
            }
        } String rear = splitWord[i]; rear splitWord[i] splitWord i String front = splitWord[i+1]; front splitWord[i+1] splitWord i+1 i 1 if(front.equals(rear)){
                return true;
            } front.equals(rear) front.equals front rear {
                return true;
            } return true; true return false; false String word word public class Main {
    public static void main(String... args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String password = null;
        try {

            password = br.readLine();
            br.close();
        } catch(IOException e) {
            e.printStackTrace();
        }

        System.out.println(isDifficultToInput(password) ? "Bad" : "Good");
    }

    private static boolean isDifficultToInput(String word){
        String[] splitWord = word.split("");

        for(int i = 0; i < splitWord.length - 1; i++){
            String rear = splitWord[i];
            String front = splitWord[i+1];
            if(front.equals(rear)){
                return true;
            }
        }
        return false;
    }
} public class Main {
    public static void main(String... args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String password = null;
        try {

            password = br.readLine();
            br.close();
        } catch(IOException e) {
            e.printStackTrace();
        }

        System.out.println(isDifficultToInput(password) ? "Bad" : "Good");
    }

    private static boolean isDifficultToInput(String word){
        String[] splitWord = word.split("");

        for(int i = 0; i < splitWord.length - 1; i++){
            String rear = splitWord[i];
            String front = splitWord[i+1];
            if(front.equals(rear)){
                return true;
            }
        }
        return false;
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String... args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String password = null;
        try {

            password = br.readLine();
            br.close();
        } catch(IOException e) {
            e.printStackTrace();
        }

        System.out.println(isDifficultToInput(password) ? "Bad" : "Good");
    }

    private static boolean isDifficultToInput(String word){
        String[] splitWord = word.split("");

        for(int i = 0; i < splitWord.length - 1; i++){
            String rear = splitWord[i];
            String front = splitWord[i+1];
            if(front.equals(rear)){
                return true;
            }
        }
        return false;
    }
}