import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        if(search(S)) System.out.println("Bad");
        else System.out.println("Good");
        sc.close();
    }

    static boolean search(String s) {
        for(int i = 1; i < 4; i++) {
            char a = s.charAt(i-1);
            char b = s.charAt(i);
            if(a == b) return true;
        }
        return false;
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        if(search(S)) System.out.println("Bad");
        else System.out.println("Good");
        sc.close();
    }

    static boolean search(String s) {
        for(int i = 1; i < 4; i++) {
            char a = s.charAt(i-1);
            char b = s.charAt(i);
            if(a == b) return true;
        }
        return false;
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        if(search(S)) System.out.println("Bad");
        else System.out.println("Good");
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        if(search(S)) System.out.println("Bad");
        else System.out.println("Good");
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.nextLine(); S sc.nextLine() sc.nextLine sc if(search(S)) System.out.println("Bad");
        else System.out.println("Good"); search(S) search S System.out.println("Bad") System.out.println System.out System System.out "Bad" System.out.println("Good") System.out.println System.out System System.out "Good" sc.close() sc.close sc String[] args args static boolean search(String s) {
        for(int i = 1; i < 4; i++) {
            char a = s.charAt(i-1);
            char b = s.charAt(i);
            if(a == b) return true;
        }
        return false;
    } search {
        for(int i = 1; i < 4; i++) {
            char a = s.charAt(i-1);
            char b = s.charAt(i);
            if(a == b) return true;
        }
        return false;
    } for(int i = 1; i < 4; i++) {
            char a = s.charAt(i-1);
            char b = s.charAt(i);
            if(a == b) return true;
        } int i = 1; int i = 1; i 1 i < 4 i 4 i++ i++ i {
            char a = s.charAt(i-1);
            char b = s.charAt(i);
            if(a == b) return true;
        } {
            char a = s.charAt(i-1);
            char b = s.charAt(i);
            if(a == b) return true;
        } char a = s.charAt(i-1); a s.charAt(i-1) s.charAt s i-1 i 1 char b = s.charAt(i); b s.charAt(i) s.charAt s i if(a == b) return true; a == b a b return true; true return false; false String s s
import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        if(search(S)) System.out.println("Bad");
        else System.out.println("Good");
        sc.close();
    }

    static boolean search(String s) {
        for(int i = 1; i < 4; i++) {
            char a = s.charAt(i-1);
            char b = s.charAt(i);
            if(a == b) return true;
        }
        return false;
    }
}