import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String key = s.nextLine();
        char prev = 'a';
        for(char c:key.toCharArray()){
            if(prev==c){
                System.out.println("Bad");
                return;
            }
            prev=c;
        }
        System.out.println("Good");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String key = s.nextLine();
        char prev = 'a';
        for(char c:key.toCharArray()){
            if(prev==c){
                System.out.println("Bad");
                return;
            }
            prev=c;
        }
        System.out.println("Good");
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String key = s.nextLine();
        char prev = 'a';
        for(char c:key.toCharArray()){
            if(prev==c){
                System.out.println("Bad");
                return;
            }
            prev=c;
        }
        System.out.println("Good");
    } main {
        Scanner s = new Scanner(System.in);
        String key = s.nextLine();
        char prev = 'a';
        for(char c:key.toCharArray()){
            if(prev==c){
                System.out.println("Bad");
                return;
            }
            prev=c;
        }
        System.out.println("Good");
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) String key = s.nextLine(); key s.nextLine() s.nextLine s char prev = 'a'; prev 'a' for(char c:key.toCharArray()){
            if(prev==c){
                System.out.println("Bad");
                return;
            }
            prev=c;
        } char c key.toCharArray() key.toCharArray key {
            if(prev==c){
                System.out.println("Bad");
                return;
            }
            prev=c;
        } {
            if(prev==c){
                System.out.println("Bad");
                return;
            }
            prev=c;
        } if(prev==c){
                System.out.println("Bad");
                return;
            } prev==c prev c {
                System.out.println("Bad");
                return;
            } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; prev=c prev c System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String key = s.nextLine();
        char prev = 'a';
        for(char c:key.toCharArray()){
            if(prev==c){
                System.out.println("Bad");
                return;
            }
            prev=c;
        }
        System.out.println("Good");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String key = s.nextLine();
        char prev = 'a';
        for(char c:key.toCharArray()){
            if(prev==c){
                System.out.println("Bad");
                return;
            }
            prev=c;
        }
        System.out.println("Good");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String key = s.nextLine();
        char prev = 'a';
        for(char c:key.toCharArray()){
            if(prev==c){
                System.out.println("Bad");
                return;
            }
            prev=c;
        }
        System.out.println("Good");
    }
}