import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        do_(inp);
        inp.close();
    }
    public static void do_(Scanner inp) {
        String s = inp.next();
        for (int i = 0; i < 10; i++) {
            if (s.contains(stringTimes(String.valueOf(i), 2))) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");
    }
    public static String stringTimes(String s, int t) {
        String res = "";
        for (int i = 0; i < t; i++) res += s;
        return res;
    }
} import java.util.*; util.* java class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        do_(inp);
        inp.close();
    }
    public static void do_(Scanner inp) {
        String s = inp.next();
        for (int i = 0; i < 10; i++) {
            if (s.contains(stringTimes(String.valueOf(i), 2))) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");
    }
    public static String stringTimes(String s, int t) {
        String res = "";
        for (int i = 0; i < t; i++) res += s;
        return res;
    }
} Main public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        do_(inp);
        inp.close();
    } main {
        Scanner inp = new Scanner(System.in);
        do_(inp);
        inp.close();
    } Scanner inp = new Scanner(System.in); inp new Scanner(System.in) do_(inp) do_ inp inp.close() inp.close inp String args[] args public static void do_(Scanner inp) {
        String s = inp.next();
        for (int i = 0; i < 10; i++) {
            if (s.contains(stringTimes(String.valueOf(i), 2))) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");
    } do_ {
        String s = inp.next();
        for (int i = 0; i < 10; i++) {
            if (s.contains(stringTimes(String.valueOf(i), 2))) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");
    } String s = inp.next(); s inp.next() inp.next inp for (int i = 0; i < 10; i++) {
            if (s.contains(stringTimes(String.valueOf(i), 2))) {
                System.out.println("Bad");
                return;
            }
        } int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
            if (s.contains(stringTimes(String.valueOf(i), 2))) {
                System.out.println("Bad");
                return;
            }
        } {
            if (s.contains(stringTimes(String.valueOf(i), 2))) {
                System.out.println("Bad");
                return;
            }
        } if (s.contains(stringTimes(String.valueOf(i), 2))) {
                System.out.println("Bad");
                return;
            } s.contains(stringTimes(String.valueOf(i), 2)) s.contains s stringTimes(String.valueOf(i), 2) stringTimes String.valueOf(i) String.valueOf String i 2 {
                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" Scanner inp inp public static String stringTimes(String s, int t) {
        String res = "";
        for (int i = 0; i < t; i++) res += s;
        return res;
    } stringTimes {
        String res = "";
        for (int i = 0; i < t; i++) res += s;
        return res;
    } String res = ""; res "" for (int i = 0; i < t; i++) res += s; int i = 0; int i = 0; i 0 i < t i t i++ i++ i res += s; res += s res s return res; res String s s int t t
import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        do_(inp);
        inp.close();
    }
    public static void do_(Scanner inp) {
        String s = inp.next();
        for (int i = 0; i < 10; i++) {
            if (s.contains(stringTimes(String.valueOf(i), 2))) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");
    }
    public static String stringTimes(String s, int t) {
        String res = "";
        for (int i = 0; i < t; i++) res += s;
        return res;
    }
}
