import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String scnum = sc.next();
        
        boolean badFlag = true;
        for(int i = 0; i < 3; i++){
            if ( scnum.charAt(i) == scnum.charAt(i+1) ) {
                badFlag = false;
                break;
            }
        }
        
        System.out.println( badFlag ? "Good" : "Bad" );
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String scnum = sc.next();
        
        boolean badFlag = true;
        for(int i = 0; i < 3; i++){
            if ( scnum.charAt(i) == scnum.charAt(i+1) ) {
                badFlag = false;
                break;
            }
        }
        
        System.out.println( badFlag ? "Good" : "Bad" );
        
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String scnum = sc.next();
        
        boolean badFlag = true;
        for(int i = 0; i < 3; i++){
            if ( scnum.charAt(i) == scnum.charAt(i+1) ) {
                badFlag = false;
                break;
            }
        }
        
        System.out.println( badFlag ? "Good" : "Bad" );
        
    } main {
        
        Scanner sc = new Scanner(System.in);
        String scnum = sc.next();
        
        boolean badFlag = true;
        for(int i = 0; i < 3; i++){
            if ( scnum.charAt(i) == scnum.charAt(i+1) ) {
                badFlag = false;
                break;
            }
        }
        
        System.out.println( badFlag ? "Good" : "Bad" );
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String scnum = sc.next(); scnum sc.next() sc.next sc boolean badFlag = true; badFlag true for(int i = 0; i < 3; i++){
            if ( scnum.charAt(i) == scnum.charAt(i+1) ) {
                badFlag = false;
                break;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            if ( scnum.charAt(i) == scnum.charAt(i+1) ) {
                badFlag = false;
                break;
            }
        } {
            if ( scnum.charAt(i) == scnum.charAt(i+1) ) {
                badFlag = false;
                break;
            }
        } if ( scnum.charAt(i) == scnum.charAt(i+1) ) {
                badFlag = false;
                break;
            } scnum.charAt(i) == scnum.charAt(i+1) scnum.charAt(i) scnum.charAt scnum i scnum.charAt(i+1) scnum.charAt scnum i+1 i 1 {
                badFlag = false;
                break;
            } badFlag = false badFlag false break; System.out.println( badFlag ? "Good" : "Bad" ) System.out.println System.out System System.out badFlag ? "Good" : "Bad" badFlag "Good" "Bad" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String scnum = sc.next();
        
        boolean badFlag = true;
        for(int i = 0; i < 3; i++){
            if ( scnum.charAt(i) == scnum.charAt(i+1) ) {
                badFlag = false;
                break;
            }
        }
        
        System.out.println( badFlag ? "Good" : "Bad" );
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String scnum = sc.next();
        
        boolean badFlag = true;
        for(int i = 0; i < 3; i++){
            if ( scnum.charAt(i) == scnum.charAt(i+1) ) {
                badFlag = false;
                break;
            }
        }
        
        System.out.println( badFlag ? "Good" : "Bad" );
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String scnum = sc.next();
        
        boolean badFlag = true;
        for(int i = 0; i < 3; i++){
            if ( scnum.charAt(i) == scnum.charAt(i+1) ) {
                badFlag = false;
                break;
            }
        }
        
        System.out.println( badFlag ? "Good" : "Bad" );
        
    }
}
