import java.util.Scanner;

public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();

        String[] pass = s.split("");
        boolean isGood = true;
        for (int i = 0; i < pass.length - 1 && isGood; i++) {
            if (pass[i].equals(pass[i + 1])) {
                isGood = false;
            }
        }

        System.out.println(isGood ? "Good" : "Bad");
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();

        String[] pass = s.split("");
        boolean isGood = true;
        for (int i = 0; i < pass.length - 1 && isGood; i++) {
            if (pass[i].equals(pass[i + 1])) {
                isGood = false;
            }
        }

        System.out.println(isGood ? "Good" : "Bad");
    }
} Main public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();

        String[] pass = s.split("");
        boolean isGood = true;
        for (int i = 0; i < pass.length - 1 && isGood; i++) {
            if (pass[i].equals(pass[i + 1])) {
                isGood = false;
            }
        }

        System.out.println(isGood ? "Good" : "Bad");
    } main {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();

        String[] pass = s.split("");
        boolean isGood = true;
        for (int i = 0; i < pass.length - 1 && isGood; i++) {
            if (pass[i].equals(pass[i + 1])) {
                isGood = false;
            }
        }

        System.out.println(isGood ? "Good" : "Bad");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String[] pass = s.split(""); pass s.split("") s.split s "" boolean isGood = true; isGood true for (int i = 0; i < pass.length - 1 && isGood; i++) {
            if (pass[i].equals(pass[i + 1])) {
                isGood = false;
            }
        } int i = 0; int i = 0; i 0 i < pass.length - 1 && isGood i < pass.length - 1 i pass.length - 1 pass.length pass pass.length 1 isGood i++ i++ i {
            if (pass[i].equals(pass[i + 1])) {
                isGood = false;
            }
        } {
            if (pass[i].equals(pass[i + 1])) {
                isGood = false;
            }
        } if (pass[i].equals(pass[i + 1])) {
                isGood = false;
            } pass[i].equals(pass[i + 1]) pass[i].equals pass[i] pass i pass[i + 1] pass i + 1 i 1 {
                isGood = false;
            } isGood = false isGood false System.out.println(isGood ? "Good" : "Bad") System.out.println System.out System System.out isGood ? "Good" : "Bad" isGood "Good" "Bad" String args[] args public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();

        String[] pass = s.split("");
        boolean isGood = true;
        for (int i = 0; i < pass.length - 1 && isGood; i++) {
            if (pass[i].equals(pass[i + 1])) {
                isGood = false;
            }
        }

        System.out.println(isGood ? "Good" : "Bad");
    }
} public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();

        String[] pass = s.split("");
        boolean isGood = true;
        for (int i = 0; i < pass.length - 1 && isGood; i++) {
            if (pass[i].equals(pass[i + 1])) {
                isGood = false;
            }
        }

        System.out.println(isGood ? "Good" : "Bad");
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();

        String[] pass = s.split("");
        boolean isGood = true;
        for (int i = 0; i < pass.length - 1 && isGood; i++) {
            if (pass[i].equals(pass[i + 1])) {
                isGood = false;
            }
        }

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