import java.util.*;

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

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

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

        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String[] s = S.split("");
        int[] n = new int[4];
        for(int i = 0; i < 4; i++) {
            n[i] = Integer.parseInt(s[i]);
        }
        
        String ans = "Good";
        for(int i = 0; i < 3; i++) {
            
            if(n[i] == n[i+1]) {
                ans = "Bad";
                break;
            }
            
        }

        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String[] s = S.split(""); s S.split("") S.split S "" int[] n = new int[4]; n new int[4] 4 for(int i = 0; i < 4; i++) {
            n[i] = Integer.parseInt(s[i]);
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            n[i] = Integer.parseInt(s[i]);
        } {
            n[i] = Integer.parseInt(s[i]);
        } n[i] = Integer.parseInt(s[i]) n[i] n i Integer.parseInt(s[i]) Integer.parseInt Integer s[i] s i String ans = "Good"; ans "Good" for(int i = 0; i < 3; i++) {
            
            if(n[i] == n[i+1]) {
                ans = "Bad";
                break;
            }
            
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            
            if(n[i] == n[i+1]) {
                ans = "Bad";
                break;
            }
            
        } {
            
            if(n[i] == n[i+1]) {
                ans = "Bad";
                break;
            }
            
        } if(n[i] == n[i+1]) {
                ans = "Bad";
                break;
            } n[i] == n[i+1] n[i] n i n[i+1] n i+1 i 1 {
                ans = "Bad";
                break;
            } ans = "Bad" ans "Bad" break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

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

        System.out.println(ans);
    }
}