import java.util.Scanner;

class Main {
    public static void main(final String[] args) {
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        int cnt = 0;
        for (int i = 0; i < 3; i++) {
            if (s.charAt(i) == s.charAt(i+1)) {
                cnt++;
            }
        }
        System.out.println(cnt > 0? "Bad":"Good");
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(final String[] args) {
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        int cnt = 0;
        for (int i = 0; i < 3; i++) {
            if (s.charAt(i) == s.charAt(i+1)) {
                cnt++;
            }
        }
        System.out.println(cnt > 0? "Bad":"Good");
    }
} Main public static void main(final String[] args) {
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        int cnt = 0;
        for (int i = 0; i < 3; i++) {
            if (s.charAt(i) == s.charAt(i+1)) {
                cnt++;
            }
        }
        System.out.println(cnt > 0? "Bad":"Good");
    } main {
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        int cnt = 0;
        for (int i = 0; i < 3; i++) {
            if (s.charAt(i) == s.charAt(i+1)) {
                cnt++;
            }
        }
        System.out.println(cnt > 0? "Bad":"Good");
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.nextLine(); s scan.nextLine() scan.nextLine scan int cnt = 0; cnt 0 for (int i = 0; i < 3; i++) {
            if (s.charAt(i) == s.charAt(i+1)) {
                cnt++;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            if (s.charAt(i) == s.charAt(i+1)) {
                cnt++;
            }
        } {
            if (s.charAt(i) == s.charAt(i+1)) {
                cnt++;
            }
        } if (s.charAt(i) == s.charAt(i+1)) {
                cnt++;
            } s.charAt(i) == s.charAt(i+1) s.charAt(i) s.charAt s i s.charAt(i+1) s.charAt s i+1 i 1 {
                cnt++;
            } cnt++ cnt System.out.println(cnt > 0? "Bad":"Good") System.out.println System.out System System.out cnt > 0? "Bad":"Good" cnt > 0 cnt 0 "Bad" "Good" final String[] args args
import java.util.Scanner;

class Main {
    public static void main(final String[] args) {
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        int cnt = 0;
        for (int i = 0; i < 3; i++) {
            if (s.charAt(i) == s.charAt(i+1)) {
                cnt++;
            }
        }
        System.out.println(cnt > 0? "Bad":"Good");
    }
}
