import java.util.*;
import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        num = num + 10000;
        String ans = "Good";
        List<Integer> list = new ArrayList<>();
        while (num > 0) {
            list.add(num % 10);
            num /= 10;
        }
        for(int i =0; i<3; i++){
            if(list.get(i) == list.get(i+1)){
                ans = "Bad";
            }
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util public class Main {
    public static void main(String[] args) {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        num = num + 10000;
        String ans = "Good";
        List<Integer> list = new ArrayList<>();
        while (num > 0) {
            list.add(num % 10);
            num /= 10;
        }
        for(int i =0; i<3; i++){
            if(list.get(i) == list.get(i+1)){
                ans = "Bad";
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        num = num + 10000;
        String ans = "Good";
        List<Integer> list = new ArrayList<>();
        while (num > 0) {
            list.add(num % 10);
            num /= 10;
        }
        for(int i =0; i<3; i++){
            if(list.get(i) == list.get(i+1)){
                ans = "Bad";
            }
        }
        System.out.println(ans);
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        num = num + 10000;
        String ans = "Good";
        List<Integer> list = new ArrayList<>();
        while (num > 0) {
            list.add(num % 10);
            num /= 10;
        }
        for(int i =0; i<3; i++){
            if(list.get(i) == list.get(i+1)){
                ans = "Bad";
            }
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc num = num + 10000 num num + 10000 num 10000 String ans = "Good"; ans "Good" List<Integer> list = new ArrayList<>(); list new ArrayList<>() while (num > 0) {
            list.add(num % 10);
            num /= 10;
        } num > 0 num 0 {
            list.add(num % 10);
            num /= 10;
        } list.add(num % 10) list.add list num % 10 num 10 num /= 10 num 10 for(int i =0; i<3; i++){
            if(list.get(i) == list.get(i+1)){
                ans = "Bad";
            }
        } int i =0; int i =0; i 0 i<3 i 3 i++ i++ i {
            if(list.get(i) == list.get(i+1)){
                ans = "Bad";
            }
        } {
            if(list.get(i) == list.get(i+1)){
                ans = "Bad";
            }
        } if(list.get(i) == list.get(i+1)){
                ans = "Bad";
            } list.get(i) == list.get(i+1) list.get(i) list.get list i list.get(i+1) list.get list i+1 i 1 {
                ans = "Bad";
            } ans = "Bad" ans "Bad" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        num = num + 10000;
        String ans = "Good";
        List<Integer> list = new ArrayList<>();
        while (num > 0) {
            list.add(num % 10);
            num /= 10;
        }
        for(int i =0; i<3; i++){
            if(list.get(i) == list.get(i+1)){
                ans = "Bad";
            }
        }
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        num = num + 10000;
        String ans = "Good";
        List<Integer> list = new ArrayList<>();
        while (num > 0) {
            list.add(num % 10);
            num /= 10;
        }
        for(int i =0; i<3; i++){
            if(list.get(i) == list.get(i+1)){
                ans = "Bad";
            }
        }
        System.out.println(ans);
    }
} Main
import java.util.*;
import java.util.ArrayList;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        num = num + 10000;
        String ans = "Good";
        List<Integer> list = new ArrayList<>();
        while (num > 0) {
            list.add(num % 10);
            num /= 10;
        }
        for(int i =0; i<3; i++){
            if(list.get(i) == list.get(i+1)){
                ans = "Bad";
            }
        }
        System.out.println(ans);
    }
}