import java.util.*;

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

        for(int i=1; i<4; i++) {
            if(s.charAt(i-1) == s.charAt(i)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");


    }
} import java.util.*; util.* java class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();

        for(int i=1; i<4; i++) {
            if(s.charAt(i-1) == s.charAt(i)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");


    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();

        for(int i=1; i<4; i++) {
            if(s.charAt(i-1) == s.charAt(i)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");


    } main {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();

        for(int i=1; i<4; i++) {
            if(s.charAt(i-1) == s.charAt(i)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");


    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc for(int i=1; i<4; i++) {
            if(s.charAt(i-1) == s.charAt(i)) {
                System.out.println("Bad");
                return;
            }
        } int i=1; int i=1; i 1 i<4 i 4 i++ i++ i {
            if(s.charAt(i-1) == s.charAt(i)) {
                System.out.println("Bad");
                return;
            }
        } {
            if(s.charAt(i-1) == s.charAt(i)) {
                System.out.println("Bad");
                return;
            }
        } if(s.charAt(i-1) == s.charAt(i)) {
                System.out.println("Bad");
                return;
            } s.charAt(i-1) == s.charAt(i) s.charAt(i-1) s.charAt s i-1 i 1 s.charAt(i) s.charAt s i {
                System.out.println("Bad");
                return;
            } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; System.out.println("Good") System.out.println System.out System System.out "Good" String args[] args
import java.util.*;

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

        for(int i=1; i<4; i++) {
            if(s.charAt(i-1) == s.charAt(i)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");


    }
}