import java.util.*;

public class Main {
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        String a = scanner.nextLine();
        boolean t = true;

        for(int i = 0;i < a.length()-1;i++){
            if (a.charAt(i) == a.charAt(i + 1)) {
                t = false;
                break;
            }
        }
        
        if (t) {
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        String a = scanner.nextLine();
        boolean t = true;

        for(int i = 0;i < a.length()-1;i++){
            if (a.charAt(i) == a.charAt(i + 1)) {
                t = false;
                break;
            }
        }
        
        if (t) {
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        }
    }
} Main public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        String a = scanner.nextLine();
        boolean t = true;

        for(int i = 0;i < a.length()-1;i++){
            if (a.charAt(i) == a.charAt(i + 1)) {
                t = false;
                break;
            }
        }
        
        if (t) {
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        String a = scanner.nextLine();
        boolean t = true;

        for(int i = 0;i < a.length()-1;i++){
            if (a.charAt(i) == a.charAt(i + 1)) {
                t = false;
                break;
            }
        }
        
        if (t) {
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String a = scanner.nextLine(); a scanner.nextLine() scanner.nextLine scanner boolean t = true; t true for(int i = 0;i < a.length()-1;i++){
            if (a.charAt(i) == a.charAt(i + 1)) {
                t = false;
                break;
            }
        } int i = 0; int i = 0; i 0 i < a.length()-1 i a.length()-1 a.length() a.length a 1 i++ i++ i {
            if (a.charAt(i) == a.charAt(i + 1)) {
                t = false;
                break;
            }
        } {
            if (a.charAt(i) == a.charAt(i + 1)) {
                t = false;
                break;
            }
        } if (a.charAt(i) == a.charAt(i + 1)) {
                t = false;
                break;
            } a.charAt(i) == a.charAt(i + 1) a.charAt(i) a.charAt a i a.charAt(i + 1) a.charAt a i + 1 i 1 {
                t = false;
                break;
            } t = false t false break; if (t) {
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        } t {
            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[]){
        Scanner scanner = new Scanner(System.in);
        String a = scanner.nextLine();
        boolean t = true;

        for(int i = 0;i < a.length()-1;i++){
            if (a.charAt(i) == a.charAt(i + 1)) {
                t = false;
                break;
            }
        }
        
        if (t) {
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        }
    }
} public class Main {
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        String a = scanner.nextLine();
        boolean t = true;

        for(int i = 0;i < a.length()-1;i++){
            if (a.charAt(i) == a.charAt(i + 1)) {
                t = false;
                break;
            }
        }
        
        if (t) {
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        String a = scanner.nextLine();
        boolean t = true;

        for(int i = 0;i < a.length()-1;i++){
            if (a.charAt(i) == a.charAt(i + 1)) {
                t = false;
                break;
            }
        }
        
        if (t) {
            System.out.println("Good");
        }else{
            System.out.println("Bad");
        }
    }
}