import java.util.Scanner;

/**
 * AtCoder Beginner Contest 131<br>
 * A - Security<br>
 * <br>
 * https://atcoder.jp/contests/abc131/tasks/abc131_a<br>
 */
public class Main {

    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            String[] input = sc.nextLine().split("");

            Result r = renzokuNum(input);
            switch (r) {
                case Good:
                    System.out.println("Good");
                    break;
           
                default:
                    System.out.println("Bad");
                    break;
            }
        }
    }

    private static Result renzokuNum(String[] input) {

        for (int i = 0; i < input.length - 1; i++) {
            if (input[i].equals(input[i + 1])) {
                return Result.Bad;
            }
        }
        return Result.Good;
    }

    enum Result {
        Good,
        Bad,
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            String[] input = sc.nextLine().split("");

            Result r = renzokuNum(input);
            switch (r) {
                case Good:
                    System.out.println("Good");
                    break;
           
                default:
                    System.out.println("Bad");
                    break;
            }
        }
    }

    private static Result renzokuNum(String[] input) {

        for (int i = 0; i < input.length - 1; i++) {
            if (input[i].equals(input[i + 1])) {
                return Result.Bad;
            }
        }
        return Result.Good;
    }

    enum Result {
        Good,
        Bad,
    }
} Main public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            String[] input = sc.nextLine().split("");

            Result r = renzokuNum(input);
            switch (r) {
                case Good:
                    System.out.println("Good");
                    break;
           
                default:
                    System.out.println("Bad");
                    break;
            }
        }
    } main {
        try (Scanner sc = new Scanner(System.in)) {
            String[] input = sc.nextLine().split("");

            Result r = renzokuNum(input);
            switch (r) {
                case Good:
                    System.out.println("Good");
                    break;
           
                default:
                    System.out.println("Bad");
                    break;
            }
        }
    } try (Scanner sc = new Scanner(System.in)) {
            String[] input = sc.nextLine().split("");

            Result r = renzokuNum(input);
            switch (r) {
                case Good:
                    System.out.println("Good");
                    break;
           
                default:
                    System.out.println("Bad");
                    break;
            }
        } {
            String[] input = sc.nextLine().split("");

            Result r = renzokuNum(input);
            switch (r) {
                case Good:
                    System.out.println("Good");
                    break;
           
                default:
                    System.out.println("Bad");
                    break;
            }
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) String[] input = sc.nextLine().split(""); input sc.nextLine().split("") sc.nextLine().split sc.nextLine() sc.nextLine sc "" Result r = renzokuNum(input); r renzokuNum(input) renzokuNum input switch (r) {
                case Good:
                    System.out.println("Good");
                    break;
           
                default:
                    System.out.println("Bad");
                    break;
            } r case Good: Good case Good: System.out.println("Good") System.out.println System.out System System.out "Good" break; default: default: System.out.println("Bad") System.out.println System.out System System.out "Bad" break; String[] args args private static Result renzokuNum(String[] input) {

        for (int i = 0; i < input.length - 1; i++) {
            if (input[i].equals(input[i + 1])) {
                return Result.Bad;
            }
        }
        return Result.Good;
    } renzokuNum {

        for (int i = 0; i < input.length - 1; i++) {
            if (input[i].equals(input[i + 1])) {
                return Result.Bad;
            }
        }
        return Result.Good;
    } for (int i = 0; i < input.length - 1; i++) {
            if (input[i].equals(input[i + 1])) {
                return Result.Bad;
            }
        } int i = 0; int i = 0; i 0 i < input.length - 1 i input.length - 1 input.length input input.length 1 i++ i++ i {
            if (input[i].equals(input[i + 1])) {
                return Result.Bad;
            }
        } {
            if (input[i].equals(input[i + 1])) {
                return Result.Bad;
            }
        } if (input[i].equals(input[i + 1])) {
                return Result.Bad;
            } input[i].equals(input[i + 1]) input[i].equals input[i] input i input[i + 1] input i + 1 i 1 {
                return Result.Bad;
            } return Result.Bad; Result.Bad Result Result.Bad return Result.Good; Result.Good Result Result.Good String[] input input enum Result {
        Good,
        Bad,
    } Result Good Good Bad Bad import java.util.Scanner;

/**
 * A import java.util.Scanner;

/**
 * AtCoder Beginner Contest 131<br>
 * A - Security<br>
 * <br>
 * public class Main {

    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            String[] input = sc.nextLine().split("");

            Result r = renzokuNum(input);
            switch (r) {
                case Good:
                    System.out.println("Good");
                    break;
           
                default:
                    System.out.println("Bad");
                    break;
            }
        }
    }

    private static Result renzokuNum(String[] input) {

        for (int i = 0; i < input.length - 1; i++) {
            if (input[i].equals(input[i + 1])) {
                return Result.Bad;
            }
        }
        return Result.Good;
    }

    enum Result {
        Good,
        Bad,
    }
} public class Main {

    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            String[] input = sc.nextLine().split("");

            Result r = renzokuNum(input);
            switch (r) {
                case Good:
                    System.out.println("Good");
                    break;
           
                default:
                    System.out.println("Bad");
                    break;
            }
        }
    }

    private static Result renzokuNum(String[] input) {

        for (int i = 0; i < input.length - 1; i++) {
            if (input[i].equals(input[i + 1])) {
                return Result.Bad;
            }
        }
        return Result.Good;
    }

    enum Result {
        Good,
        Bad,
    }
} Main
import java.util.Scanner;

/**
 * AtCoder Beginner Contest 131<br>
 * A - Security<br>
 * <br>
 * https://atcoder.jp/contests/abc131/tasks/abc131_a<br>
 */
public class Main {

    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            String[] input = sc.nextLine().split("");

            Result r = renzokuNum(input);
            switch (r) {
                case Good:
                    System.out.println("Good");
                    break;
           
                default:
                    System.out.println("Bad");
                    break;
            }
        }
    }

    private static Result renzokuNum(String[] input) {

        for (int i = 0; i < input.length - 1; i++) {
            if (input[i].equals(input[i + 1])) {
                return Result.Bad;
            }
        }
        return Result.Good;
    }

    enum Result {
        Good,
        Bad,
    }
}