import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        StringBuilder str =  new StringBuilder(s);
        for(int i = 1; i < str.length(); ++i){
            if(str.charAt(i) == str.charAt(i-1)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");

    }

} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        StringBuilder str =  new StringBuilder(s);
        for(int i = 1; i < str.length(); ++i){
            if(str.charAt(i) == str.charAt(i-1)) {
                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.nextLine();
        StringBuilder str =  new StringBuilder(s);
        for(int i = 1; i < str.length(); ++i){
            if(str.charAt(i) == str.charAt(i-1)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");

    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        StringBuilder str =  new StringBuilder(s);
        for(int i = 1; i < str.length(); ++i){
            if(str.charAt(i) == str.charAt(i-1)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc StringBuilder str =  new StringBuilder(s); str new StringBuilder(s) for(int i = 1; i < str.length(); ++i){
            if(str.charAt(i) == str.charAt(i-1)) {
                System.out.println("Bad");
                return;
            }
        } int i = 1; int i = 1; i 1 i < str.length() i str.length() str.length str ++i ++i i {
            if(str.charAt(i) == str.charAt(i-1)) {
                System.out.println("Bad");
                return;
            }
        } {
            if(str.charAt(i) == str.charAt(i-1)) {
                System.out.println("Bad");
                return;
            }
        } if(str.charAt(i) == str.charAt(i-1)) {
                System.out.println("Bad");
                return;
            } str.charAt(i) == str.charAt(i-1) str.charAt(i) str.charAt str i str.charAt(i-1) str.charAt str i-1 i 1 {
                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 public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        StringBuilder str =  new StringBuilder(s);
        for(int i = 1; i < str.length(); ++i){
            if(str.charAt(i) == str.charAt(i-1)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");

    }

} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        StringBuilder str =  new StringBuilder(s);
        for(int i = 1; i < str.length(); ++i){
            if(str.charAt(i) == str.charAt(i-1)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");

    }

} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        StringBuilder str =  new StringBuilder(s);
        for(int i = 1; i < str.length(); ++i){
            if(str.charAt(i) == str.charAt(i-1)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");

    }

}