import java.util.*;
import java.lang.*;

class Main{
    
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        boolean T = true;
        for(int i = 0 ; i < S.length()-1 ; i++){
            if(S.substring(i, i+1).equals(S.substring(i+1, i+2))){
                System.out.println("Bad");
                T = false;
                break;
            }
            
        }
        if(T){
            System.out.println("Good");
        }

        sc.close();

    }

} import java.util.*; util.* java import java.lang.*; lang.* java class Main{
    
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        boolean T = true;
        for(int i = 0 ; i < S.length()-1 ; i++){
            if(S.substring(i, i+1).equals(S.substring(i+1, i+2))){
                System.out.println("Bad");
                T = false;
                break;
            }
            
        }
        if(T){
            System.out.println("Good");
        }

        sc.close();

    }

} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        boolean T = true;
        for(int i = 0 ; i < S.length()-1 ; i++){
            if(S.substring(i, i+1).equals(S.substring(i+1, i+2))){
                System.out.println("Bad");
                T = false;
                break;
            }
            
        }
        if(T){
            System.out.println("Good");
        }

        sc.close();

    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        boolean T = true;
        for(int i = 0 ; i < S.length()-1 ; i++){
            if(S.substring(i, i+1).equals(S.substring(i+1, i+2))){
                System.out.println("Bad");
                T = false;
                break;
            }
            
        }
        if(T){
            System.out.println("Good");
        }

        sc.close();

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc boolean T = true; T true for(int i = 0 ; i < S.length()-1 ; i++){
            if(S.substring(i, i+1).equals(S.substring(i+1, i+2))){
                System.out.println("Bad");
                T = false;
                break;
            }
            
        } int i = 0 ; int i = 0 ; i 0 i < S.length()-1 i S.length()-1 S.length() S.length S 1 i++ i++ i {
            if(S.substring(i, i+1).equals(S.substring(i+1, i+2))){
                System.out.println("Bad");
                T = false;
                break;
            }
            
        } {
            if(S.substring(i, i+1).equals(S.substring(i+1, i+2))){
                System.out.println("Bad");
                T = false;
                break;
            }
            
        } if(S.substring(i, i+1).equals(S.substring(i+1, i+2))){
                System.out.println("Bad");
                T = false;
                break;
            } S.substring(i, i+1).equals(S.substring(i+1, i+2)) S.substring(i, i+1).equals S.substring(i, i+1) S.substring S i i+1 i 1 S.substring(i+1, i+2) S.substring S i+1 i 1 i+2 i 2 {
                System.out.println("Bad");
                T = false;
                break;
            } System.out.println("Bad") System.out.println System.out System System.out "Bad" T = false T false break; if(T){
            System.out.println("Good");
        } T {
            System.out.println("Good");
        } System.out.println("Good") System.out.println System.out System System.out "Good" sc.close() sc.close sc String[] args args
import java.util.*;
import java.lang.*;

class Main{
    
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        boolean T = true;
        for(int i = 0 ; i < S.length()-1 ; i++){
            if(S.substring(i, i+1).equals(S.substring(i+1, i+2))){
                System.out.println("Bad");
                T = false;
                break;
            }
            
        }
        if(T){
            System.out.println("Good");
        }

        sc.close();

    }

}
