import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String s = br.readLine();
        String ans = "Good";
        
        for(int i = 0; i < 3; i++){
            if(s.charAt(i) == s.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        }
        
        out.println(ans);
        out.close();
        
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String s = br.readLine();
        String ans = "Good";
        
        for(int i = 0; i < 3; i++){
            if(s.charAt(i) == s.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        }
        
        out.println(ans);
        out.close();
        
    }
} Main public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String s = br.readLine();
        String ans = "Good";
        
        for(int i = 0; i < 3; i++){
            if(s.charAt(i) == s.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        }
        
        out.println(ans);
        out.close();
        
    } main {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String s = br.readLine();
        String ans = "Good";
        
        for(int i = 0; i < 3; i++){
            if(s.charAt(i) == s.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        }
        
        out.println(ans);
        out.close();
        
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); out new PrintWriter(new OutputStreamWriter(System.out)) String s = br.readLine(); s br.readLine() br.readLine br 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; out.println(ans) out.println out ans out.close() out.close out String[] args args public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String s = br.readLine();
        String ans = "Good";
        
        for(int i = 0; i < 3; i++){
            if(s.charAt(i) == s.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        }
        
        out.println(ans);
        out.close();
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String s = br.readLine();
        String ans = "Good";
        
        for(int i = 0; i < 3; i++){
            if(s.charAt(i) == s.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        }
        
        out.println(ans);
        out.close();
        
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String s = br.readLine();
        String ans = "Good";
        
        for(int i = 0; i < 3; i++){
            if(s.charAt(i) == s.charAt(i + 1)){
                ans = "Bad";
                break;
            }
        }
        
        out.println(ans);
        out.close();
        
    }
}