import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char pre = s.charAt(0);
        String ans = "Good";
        for (int i = 1; i < 4; i++) {
            if(pre == s.charAt(i)) ans = "Bad";
            pre = s.charAt(i);
        }
        System.out.println(ans);
        sc.close();

    }

} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char pre = s.charAt(0);
        String ans = "Good";
        for (int i = 1; i < 4; i++) {
            if(pre == s.charAt(i)) ans = "Bad";
            pre = s.charAt(i);
        }
        System.out.println(ans);
        sc.close();

    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char pre = s.charAt(0);
        String ans = "Good";
        for (int i = 1; i < 4; i++) {
            if(pre == s.charAt(i)) ans = "Bad";
            pre = s.charAt(i);
        }
        System.out.println(ans);
        sc.close();

    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char pre = s.charAt(0);
        String ans = "Good";
        for (int i = 1; i < 4; i++) {
            if(pre == s.charAt(i)) ans = "Bad";
            pre = s.charAt(i);
        }
        System.out.println(ans);
        sc.close();

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc char pre = s.charAt(0); pre s.charAt(0) s.charAt s 0 String ans = "Good"; ans "Good" for (int i = 1; i < 4; i++) {
            if(pre == s.charAt(i)) ans = "Bad";
            pre = s.charAt(i);
        } int i = 1; int i = 1; i 1 i < 4 i 4 i++ i++ i {
            if(pre == s.charAt(i)) ans = "Bad";
            pre = s.charAt(i);
        } {
            if(pre == s.charAt(i)) ans = "Bad";
            pre = s.charAt(i);
        } if(pre == s.charAt(i)) ans = "Bad"; pre == s.charAt(i) pre s.charAt(i) s.charAt s i ans = "Bad" ans "Bad" pre = s.charAt(i) pre s.charAt(i) s.charAt s i System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char pre = s.charAt(0);
        String ans = "Good";
        for (int i = 1; i < 4; i++) {
            if(pre == s.charAt(i)) ans = "Bad";
            pre = s.charAt(i);
        }
        System.out.println(ans);
        sc.close();

    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char pre = s.charAt(0);
        String ans = "Good";
        for (int i = 1; i < 4; i++) {
            if(pre == s.charAt(i)) ans = "Bad";
            pre = s.charAt(i);
        }
        System.out.println(ans);
        sc.close();

    }

} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char pre = s.charAt(0);
        String ans = "Good";
        for (int i = 1; i < 4; i++) {
            if(pre == s.charAt(i)) ans = "Bad";
            pre = s.charAt(i);
        }
        System.out.println(ans);
        sc.close();

    }

}
