import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String key = s.nextLine();
        for(int i=0;i<key.length();i++){
            if(i==key.length()-1){
                break;
            }
            if(i+1<key.length()&&key.charAt(i+1)!=key.charAt(i)){
                continue;
            }else{
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String key = s.nextLine();
        for(int i=0;i<key.length();i++){
            if(i==key.length()-1){
                break;
            }
            if(i+1<key.length()&&key.charAt(i+1)!=key.charAt(i)){
                continue;
            }else{
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String key = s.nextLine();
        for(int i=0;i<key.length();i++){
            if(i==key.length()-1){
                break;
            }
            if(i+1<key.length()&&key.charAt(i+1)!=key.charAt(i)){
                continue;
            }else{
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    } main {
        Scanner s = new Scanner(System.in);
        String key = s.nextLine();
        for(int i=0;i<key.length();i++){
            if(i==key.length()-1){
                break;
            }
            if(i+1<key.length()&&key.charAt(i+1)!=key.charAt(i)){
                continue;
            }else{
                System.out.println("Bad");
                System.exit(0);
            }
        }
        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 for(int i=0;i<key.length();i++){
            if(i==key.length()-1){
                break;
            }
            if(i+1<key.length()&&key.charAt(i+1)!=key.charAt(i)){
                continue;
            }else{
                System.out.println("Bad");
                System.exit(0);
            }
        } int i=0; int i=0; i 0 i<key.length() i key.length() key.length key i++ i++ i {
            if(i==key.length()-1){
                break;
            }
            if(i+1<key.length()&&key.charAt(i+1)!=key.charAt(i)){
                continue;
            }else{
                System.out.println("Bad");
                System.exit(0);
            }
        } {
            if(i==key.length()-1){
                break;
            }
            if(i+1<key.length()&&key.charAt(i+1)!=key.charAt(i)){
                continue;
            }else{
                System.out.println("Bad");
                System.exit(0);
            }
        } if(i==key.length()-1){
                break;
            } i==key.length()-1 i key.length()-1 key.length() key.length key 1 {
                break;
            } break; if(i+1<key.length()&&key.charAt(i+1)!=key.charAt(i)){
                continue;
            }else{
                System.out.println("Bad");
                System.exit(0);
            } i+1<key.length()&&key.charAt(i+1)!=key.charAt(i) i+1<key.length() i+1 i 1 key.length() key.length key key.charAt(i+1)!=key.charAt(i) key.charAt(i+1) key.charAt key i+1 i 1 key.charAt(i) key.charAt key i {
                continue;
            } continue; {
                System.out.println("Bad");
                System.exit(0);
            } System.out.println("Bad") System.out.println System.out System System.out "Bad" System.exit(0) System.exit System 0 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();
        for(int i=0;i<key.length();i++){
            if(i==key.length()-1){
                break;
            }
            if(i+1<key.length()&&key.charAt(i+1)!=key.charAt(i)){
                continue;
            }else{
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String key = s.nextLine();
        for(int i=0;i<key.length();i++){
            if(i==key.length()-1){
                break;
            }
            if(i+1<key.length()&&key.charAt(i+1)!=key.charAt(i)){
                continue;
            }else{
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String key = s.nextLine();
        for(int i=0;i<key.length();i++){
            if(i==key.length()-1){
                break;
            }
            if(i+1<key.length()&&key.charAt(i+1)!=key.charAt(i)){
                continue;
            }else{
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    }
}
