
import java.util.Scanner;

class Main {
     public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        char []S;
        int count=0;
        S=input.next().toCharArray();
        for(int i=0;i<3;i++)
        {
                if(S[i]==S[i+1])
                {
                    System.out.println("Bad");
                    count++;
                    break;
                }
            
        }
        if(count==0)
        {
            System.out.println("Good");
        }    
     }
        
} import java.util.Scanner; Scanner java.util class Main {
     public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        char []S;
        int count=0;
        S=input.next().toCharArray();
        for(int i=0;i<3;i++)
        {
                if(S[i]==S[i+1])
                {
                    System.out.println("Bad");
                    count++;
                    break;
                }
            
        }
        if(count==0)
        {
            System.out.println("Good");
        }    
     }
        
} Main public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        char []S;
        int count=0;
        S=input.next().toCharArray();
        for(int i=0;i<3;i++)
        {
                if(S[i]==S[i+1])
                {
                    System.out.println("Bad");
                    count++;
                    break;
                }
            
        }
        if(count==0)
        {
            System.out.println("Good");
        }    
     } main {
        Scanner input=new Scanner(System.in);
        char []S;
        int count=0;
        S=input.next().toCharArray();
        for(int i=0;i<3;i++)
        {
                if(S[i]==S[i+1])
                {
                    System.out.println("Bad");
                    count++;
                    break;
                }
            
        }
        if(count==0)
        {
            System.out.println("Good");
        }    
     } Scanner input=new Scanner(System.in); input new Scanner(System.in) char []S; S int count=0; count 0 S=input.next().toCharArray() S input.next().toCharArray() input.next().toCharArray input.next() input.next input for(int i=0;i<3;i++)
        {
                if(S[i]==S[i+1])
                {
                    System.out.println("Bad");
                    count++;
                    break;
                }
            
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
                if(S[i]==S[i+1])
                {
                    System.out.println("Bad");
                    count++;
                    break;
                }
            
        } {
                if(S[i]==S[i+1])
                {
                    System.out.println("Bad");
                    count++;
                    break;
                }
            
        } if(S[i]==S[i+1])
                {
                    System.out.println("Bad");
                    count++;
                    break;
                } S[i]==S[i+1] S[i] S i S[i+1] S i+1 i 1 {
                    System.out.println("Bad");
                    count++;
                    break;
                } System.out.println("Bad") System.out.println System.out System System.out "Bad" count++ count break; if(count==0)
        {
            System.out.println("Good");
        } count==0 count 0 {
            System.out.println("Good");
        } System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args

import java.util.Scanner;

class Main {
     public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        char []S;
        int count=0;
        S=input.next().toCharArray();
        for(int i=0;i<3;i++)
        {
                if(S[i]==S[i+1])
                {
                    System.out.println("Bad");
                    count++;
                    break;
                }
            
        }
        if(count==0)
        {
            System.out.println("Good");
        }    
     }
        
}
