import java.util.Scanner;

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

        String str = sc.next();

        char[] ch = new char[4];
        String result = "Good";

        for(int i = 0; i < ch.length; i++){
            ch[i] = str.charAt(i);
        }

        for(int i = 1; i < ch.length; i++){
            if(ch[i - 1] == ch[i])
                result = "Bad";
        }

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

        String str = sc.next();

        char[] ch = new char[4];
        String result = "Good";

        for(int i = 0; i < ch.length; i++){
            ch[i] = str.charAt(i);
        }

        for(int i = 1; i < ch.length; i++){
            if(ch[i - 1] == ch[i])
                result = "Bad";
        }

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

        String str = sc.next();

        char[] ch = new char[4];
        String result = "Good";

        for(int i = 0; i < ch.length; i++){
            ch[i] = str.charAt(i);
        }

        for(int i = 1; i < ch.length; i++){
            if(ch[i - 1] == ch[i])
                result = "Bad";
        }

        System.out.println(result);
    } main {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();

        char[] ch = new char[4];
        String result = "Good";

        for(int i = 0; i < ch.length; i++){
            ch[i] = str.charAt(i);
        }

        for(int i = 1; i < ch.length; i++){
            if(ch[i - 1] == ch[i])
                result = "Bad";
        }

        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc char[] ch = new char[4]; ch new char[4] 4 String result = "Good"; result "Good" for(int i = 0; i < ch.length; i++){
            ch[i] = str.charAt(i);
        } int i = 0; int i = 0; i 0 i < ch.length i ch.length ch ch.length i++ i++ i {
            ch[i] = str.charAt(i);
        } {
            ch[i] = str.charAt(i);
        } ch[i] = str.charAt(i) ch[i] ch i str.charAt(i) str.charAt str i for(int i = 1; i < ch.length; i++){
            if(ch[i - 1] == ch[i])
                result = "Bad";
        } int i = 1; int i = 1; i 1 i < ch.length i ch.length ch ch.length i++ i++ i {
            if(ch[i - 1] == ch[i])
                result = "Bad";
        } {
            if(ch[i - 1] == ch[i])
                result = "Bad";
        } if(ch[i - 1] == ch[i])
                result = "Bad"; ch[i - 1] == ch[i] ch[i - 1] ch i - 1 i 1 ch[i] ch i result = "Bad" result "Bad" System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String str = sc.next();

        char[] ch = new char[4];
        String result = "Good";

        for(int i = 0; i < ch.length; i++){
            ch[i] = str.charAt(i);
        }

        for(int i = 1; i < ch.length; i++){
            if(ch[i - 1] == ch[i])
                result = "Bad";
        }

        System.out.println(result);
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String str = sc.next();

        char[] ch = new char[4];
        String result = "Good";

        for(int i = 0; i < ch.length; i++){
            ch[i] = str.charAt(i);
        }

        for(int i = 1; i < ch.length; i++){
            if(ch[i - 1] == ch[i])
                result = "Bad";
        }

        System.out.println(result);
    }
} Main
import java.util.Scanner;

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

        String str = sc.next();

        char[] ch = new char[4];
        String result = "Good";

        for(int i = 0; i < ch.length; i++){
            ch[i] = str.charAt(i);
        }

        for(int i = 1; i < ch.length; i++){
            if(ch[i - 1] == ch[i])
                result = "Bad";
        }

        System.out.println(result);
    }
}