import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String code = sc.next();
        String[] code_array = code.split("");
        String before = "";
        int flag = 0;
        
        for(int i = 0; i < code.length(); i++){
            
            if(i == 0){
                before = code_array[i];
                continue;
            }
            if(code_array[i].equals(before)){
                flag = 1;
            }
            before = code_array[i];
        }
        
        if(flag == 0){
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        }
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String code = sc.next();
        String[] code_array = code.split("");
        String before = "";
        int flag = 0;
        
        for(int i = 0; i < code.length(); i++){
            
            if(i == 0){
                before = code_array[i];
                continue;
            }
            if(code_array[i].equals(before)){
                flag = 1;
            }
            before = code_array[i];
        }
        
        if(flag == 0){
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        }
        
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String code = sc.next();
        String[] code_array = code.split("");
        String before = "";
        int flag = 0;
        
        for(int i = 0; i < code.length(); i++){
            
            if(i == 0){
                before = code_array[i];
                continue;
            }
            if(code_array[i].equals(before)){
                flag = 1;
            }
            before = code_array[i];
        }
        
        if(flag == 0){
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        }
        
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String code = sc.next();
        String[] code_array = code.split("");
        String before = "";
        int flag = 0;
        
        for(int i = 0; i < code.length(); i++){
            
            if(i == 0){
                before = code_array[i];
                continue;
            }
            if(code_array[i].equals(before)){
                flag = 1;
            }
            before = code_array[i];
        }
        
        if(flag == 0){
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        }
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String code = sc.next(); code sc.next() sc.next sc String[] code_array = code.split(""); code_array code.split("") code.split code "" String before = ""; before "" int flag = 0; flag 0 for(int i = 0; i < code.length(); i++){
            
            if(i == 0){
                before = code_array[i];
                continue;
            }
            if(code_array[i].equals(before)){
                flag = 1;
            }
            before = code_array[i];
        } int i = 0; int i = 0; i 0 i < code.length() i code.length() code.length code i++ i++ i {
            
            if(i == 0){
                before = code_array[i];
                continue;
            }
            if(code_array[i].equals(before)){
                flag = 1;
            }
            before = code_array[i];
        } {
            
            if(i == 0){
                before = code_array[i];
                continue;
            }
            if(code_array[i].equals(before)){
                flag = 1;
            }
            before = code_array[i];
        } if(i == 0){
                before = code_array[i];
                continue;
            } i == 0 i 0 {
                before = code_array[i];
                continue;
            } before = code_array[i] before code_array[i] code_array i continue; if(code_array[i].equals(before)){
                flag = 1;
            } code_array[i].equals(before) code_array[i].equals code_array[i] code_array i before {
                flag = 1;
            } flag = 1 flag 1 before = code_array[i] before code_array[i] code_array i if(flag == 0){
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        } flag == 0 flag 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" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String code = sc.next();
        String[] code_array = code.split("");
        String before = "";
        int flag = 0;
        
        for(int i = 0; i < code.length(); i++){
            
            if(i == 0){
                before = code_array[i];
                continue;
            }
            if(code_array[i].equals(before)){
                flag = 1;
            }
            before = code_array[i];
        }
        
        if(flag == 0){
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        }
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String code = sc.next();
        String[] code_array = code.split("");
        String before = "";
        int flag = 0;
        
        for(int i = 0; i < code.length(); i++){
            
            if(i == 0){
                before = code_array[i];
                continue;
            }
            if(code_array[i].equals(before)){
                flag = 1;
            }
            before = code_array[i];
        }
        
        if(flag == 0){
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        }
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String code = sc.next();
        String[] code_array = code.split("");
        String before = "";
        int flag = 0;
        
        for(int i = 0; i < code.length(); i++){
            
            if(i == 0){
                before = code_array[i];
                continue;
            }
            if(code_array[i].equals(before)){
                flag = 1;
            }
            before = code_array[i];
        }
        
        if(flag == 0){
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        }
        
    }
}
