
import java.util.*;
import java.math.*;
import java.io.*;
import java.lang.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        if(s.charAt(0) == s.charAt(1) ||
                s.charAt(1) == s.charAt(2) ||
                s.charAt(2) == s.charAt(3) ){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }
    }
}

class io{
    public static void YesNo(boolean f) {
        System.out.println(f?"Yes":"No");
    }
    public static void YESNO(boolean f) {
        System.out.println(f?"YES":"NO");
    }
}

class Algo{
    public static boolean isOdd(int n){
        return n % 2 == 1;
    }
    public static boolean isEven(int n){
        return n % 2 == 0;
    }


}
 import java.util.*; util.* java import java.math.*; math.* java import java.io.*; io.* java import java.lang.*; lang.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        if(s.charAt(0) == s.charAt(1) ||
                s.charAt(1) == s.charAt(2) ||
                s.charAt(2) == s.charAt(3) ){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        if(s.charAt(0) == s.charAt(1) ||
                s.charAt(1) == s.charAt(2) ||
                s.charAt(2) == s.charAt(3) ){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        if(s.charAt(0) == s.charAt(1) ||
                s.charAt(1) == s.charAt(2) ||
                s.charAt(2) == s.charAt(3) ){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc if(s.charAt(0) == s.charAt(1) ||
                s.charAt(1) == s.charAt(2) ||
                s.charAt(2) == s.charAt(3) ){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        } s.charAt(0) == s.charAt(1) ||
                s.charAt(1) == s.charAt(2) ||
                s.charAt(2) == s.charAt(3) s.charAt(0) == s.charAt(1) ||
                s.charAt(1) == s.charAt(2) ||
                s.charAt(2) == s.charAt(3) s.charAt(0) == s.charAt(1) s.charAt(0) s.charAt s 0 s.charAt(1) s.charAt s 1 s.charAt(1) == s.charAt(2) s.charAt(1) s.charAt s 1 s.charAt(2) s.charAt s 2 s.charAt(2) == s.charAt(3) s.charAt(2) s.charAt s 2 s.charAt(3) s.charAt s 3 {
            System.out.println("Bad");
        } System.out.println("Bad") System.out.println System.out System System.out "Bad" {
            System.out.println("Good");
        } System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args class io{
    public static void YesNo(boolean f) {
        System.out.println(f?"Yes":"No");
    }
    public static void YESNO(boolean f) {
        System.out.println(f?"YES":"NO");
    }
} io public static void YesNo(boolean f) {
        System.out.println(f?"Yes":"No");
    } YesNo {
        System.out.println(f?"Yes":"No");
    } System.out.println(f?"Yes":"No") System.out.println System.out System System.out f?"Yes":"No" f "Yes" "No" boolean f f public static void YESNO(boolean f) {
        System.out.println(f?"YES":"NO");
    } YESNO {
        System.out.println(f?"YES":"NO");
    } System.out.println(f?"YES":"NO") System.out.println System.out System System.out f?"YES":"NO" f "YES" "NO" boolean f f class Algo{
    public static boolean isOdd(int n){
        return n % 2 == 1;
    }
    public static boolean isEven(int n){
        return n % 2 == 0;
    }


} Algo public static boolean isOdd(int n){
        return n % 2 == 1;
    } isOdd {
        return n % 2 == 1;
    } return n % 2 == 1; n % 2 == 1 n % 2 n 2 1 int n n public static boolean isEven(int n){
        return n % 2 == 0;
    } isEven {
        return n % 2 == 0;
    } return n % 2 == 0; n % 2 == 0 n % 2 n 2 0 int n n public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        if(s.charAt(0) == s.charAt(1) ||
                s.charAt(1) == s.charAt(2) ||
                s.charAt(2) == s.charAt(3) ){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        if(s.charAt(0) == s.charAt(1) ||
                s.charAt(1) == s.charAt(2) ||
                s.charAt(2) == s.charAt(3) ){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }
    }
} Main

import java.util.*;
import java.math.*;
import java.io.*;
import java.lang.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        if(s.charAt(0) == s.charAt(1) ||
                s.charAt(1) == s.charAt(2) ||
                s.charAt(2) == s.charAt(3) ){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }
    }
}

class io{
    public static void YesNo(boolean f) {
        System.out.println(f?"Yes":"No");
    }
    public static void YESNO(boolean f) {
        System.out.println(f?"YES":"NO");
    }
}

class Algo{
    public static boolean isOdd(int n){
        return n % 2 == 1;
    }
    public static boolean isEven(int n){
        return n % 2 == 0;
    }


}

