import java.util.Scanner;
class Main
{
	public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
        String s=sc.next();
        
        int sum=0;
        for(int i=0; i<3; i++){
            if(s.charAt(i)==s.charAt(i+1)){
                sum++;
            }
        }
        if(sum==0){
            System.out.println("Good");
        }
        else{
            System.out.println("Bad");
        }
        sc.close();
    }
} import java.util.Scanner; Scanner java.util class Main
{
	public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
        String s=sc.next();
        
        int sum=0;
        for(int i=0; i<3; i++){
            if(s.charAt(i)==s.charAt(i+1)){
                sum++;
            }
        }
        if(sum==0){
            System.out.println("Good");
        }
        else{
            System.out.println("Bad");
        }
        sc.close();
    }
} Main public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
        String s=sc.next();
        
        int sum=0;
        for(int i=0; i<3; i++){
            if(s.charAt(i)==s.charAt(i+1)){
                sum++;
            }
        }
        if(sum==0){
            System.out.println("Good");
        }
        else{
            System.out.println("Bad");
        }
        sc.close();
    } main {
		Scanner sc=new Scanner(System.in);
        String s=sc.next();
        
        int sum=0;
        for(int i=0; i<3; i++){
            if(s.charAt(i)==s.charAt(i+1)){
                sum++;
            }
        }
        if(sum==0){
            System.out.println("Good");
        }
        else{
            System.out.println("Bad");
        }
        sc.close();
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) String s=sc.next(); s sc.next() sc.next sc int sum=0; sum 0 for(int i=0; i<3; i++){
            if(s.charAt(i)==s.charAt(i+1)){
                sum++;
            }
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
            if(s.charAt(i)==s.charAt(i+1)){
                sum++;
            }
        } {
            if(s.charAt(i)==s.charAt(i+1)){
                sum++;
            }
        } if(s.charAt(i)==s.charAt(i+1)){
                sum++;
            } 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 {
                sum++;
            } sum++ sum if(sum==0){
            System.out.println("Good");
        }
        else{
            System.out.println("Bad");
        } sum==0 sum 0 {
            System.out.println("Good");
        } System.out.println("Good") System.out.println System.out System System.out "Good" {
            System.out.println("Bad");
        } System.out.println("Bad") System.out.println System.out System System.out "Bad" sc.close() sc.close sc String args[] args
import java.util.Scanner;
class Main
{
	public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
        String s=sc.next();
        
        int sum=0;
        for(int i=0; i<3; i++){
            if(s.charAt(i)==s.charAt(i+1)){
                sum++;
            }
        }
        if(sum==0){
            System.out.println("Good");
        }
        else{
            System.out.println("Bad");
        }
        sc.close();
    }
}