import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String ans = "Good";

        for(int i = 0; i < 3; i++){
            if(S.charAt(i) == S.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        }
        System.out.print(ans);
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String ans = "Good";

        for(int i = 0; i < 3; i++){
            if(S.charAt(i) == S.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        }
        System.out.print(ans);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String ans = "Good";

        for(int i = 0; i < 3; i++){
            if(S.charAt(i) == S.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        }
        System.out.print(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String ans = "Good";

        for(int i = 0; i < 3; i++){
            if(S.charAt(i) == S.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        }
        System.out.print(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String ans = "Good"; ans "Good" for(int i = 0; i < 3; i++){
            if(S.charAt(i) == S.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            if(S.charAt(i) == S.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        } {
            if(S.charAt(i) == S.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        } if(S.charAt(i) == S.charAt(i + 1)){
                ans = "Bad";
                break;
            } 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 {
                ans = "Bad";
                break;
            } ans = "Bad" ans "Bad" break; System.out.print(ans) System.out.print System.out System System.out ans String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String ans = "Good";

        for(int i = 0; i < 3; i++){
            if(S.charAt(i) == S.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        }
        System.out.print(ans);
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String ans = "Good";

        for(int i = 0; i < 3; i++){
            if(S.charAt(i) == S.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        }
        System.out.print(ans);
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String ans = "Good";

        for(int i = 0; i < 3; i++){
            if(S.charAt(i) == S.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        }
        System.out.print(ans);
    }
}