import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            String S = in.next();
            for (int i = 1; i < S.length(); i++) {
                if (S.charAt(i - 1) == S.charAt(i)) {
                    System.out.println("Bad");
                    return;
                }
            }
            System.out.println("Good");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            String S = in.next();
            for (int i = 1; i < S.length(); i++) {
                if (S.charAt(i - 1) == S.charAt(i)) {
                    System.out.println("Bad");
                    return;
                }
            }
            System.out.println("Good");
        }
    }
} Main public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            String S = in.next();
            for (int i = 1; i < S.length(); i++) {
                if (S.charAt(i - 1) == S.charAt(i)) {
                    System.out.println("Bad");
                    return;
                }
            }
            System.out.println("Good");
        }
    } main {
        try (Scanner in = new Scanner(System.in)) {
            String S = in.next();
            for (int i = 1; i < S.length(); i++) {
                if (S.charAt(i - 1) == S.charAt(i)) {
                    System.out.println("Bad");
                    return;
                }
            }
            System.out.println("Good");
        }
    } try (Scanner in = new Scanner(System.in)) {
            String S = in.next();
            for (int i = 1; i < S.length(); i++) {
                if (S.charAt(i - 1) == S.charAt(i)) {
                    System.out.println("Bad");
                    return;
                }
            }
            System.out.println("Good");
        } {
            String S = in.next();
            for (int i = 1; i < S.length(); i++) {
                if (S.charAt(i - 1) == S.charAt(i)) {
                    System.out.println("Bad");
                    return;
                }
            }
            System.out.println("Good");
        } Scanner in = new Scanner(System.in) Scanner in = new Scanner(System.in) new Scanner(System.in) String S = in.next(); S in.next() in.next in for (int i = 1; i < S.length(); i++) {
                if (S.charAt(i - 1) == S.charAt(i)) {
                    System.out.println("Bad");
                    return;
                }
            } int i = 1; int i = 1; i 1 i < S.length() i S.length() S.length S i++ i++ i {
                if (S.charAt(i - 1) == S.charAt(i)) {
                    System.out.println("Bad");
                    return;
                }
            } {
                if (S.charAt(i - 1) == S.charAt(i)) {
                    System.out.println("Bad");
                    return;
                }
            } if (S.charAt(i - 1) == S.charAt(i)) {
                    System.out.println("Bad");
                    return;
                } S.charAt(i - 1) == S.charAt(i) S.charAt(i - 1) S.charAt S i - 1 i 1 S.charAt(i) S.charAt S i {
                    System.out.println("Bad");
                    return;
                } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            String S = in.next();
            for (int i = 1; i < S.length(); i++) {
                if (S.charAt(i - 1) == S.charAt(i)) {
                    System.out.println("Bad");
                    return;
                }
            }
            System.out.println("Good");
        }
    }
} public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            String S = in.next();
            for (int i = 1; i < S.length(); i++) {
                if (S.charAt(i - 1) == S.charAt(i)) {
                    System.out.println("Bad");
                    return;
                }
            }
            System.out.println("Good");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            String S = in.next();
            for (int i = 1; i < S.length(); i++) {
                if (S.charAt(i - 1) == S.charAt(i)) {
                    System.out.println("Bad");
                    return;
                }
            }
            System.out.println("Good");
        }
    }
}
