import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);

        String str = sc.nextLine();

        String ans = "Good";
        for (int i = 0; i < 3; i++) {
            if (str.charAt(i) == str.charAt(i + 1)) {
                ans = "Bad";
                break;
            }
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);

        String str = sc.nextLine();

        String ans = "Good";
        for (int i = 0; i < 3; i++) {
            if (str.charAt(i) == str.charAt(i + 1)) {
                ans = "Bad";
                break;
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);

        String str = sc.nextLine();

        String ans = "Good";
        for (int i = 0; i < 3; i++) {
            if (str.charAt(i) == str.charAt(i + 1)) {
                ans = "Bad";
                break;
            }
        }
        System.out.println(ans);
    } main {
        
        Scanner sc = new Scanner(System.in);

        String str = sc.nextLine();

        String ans = "Good";
        for (int i = 0; i < 3; i++) {
            if (str.charAt(i) == str.charAt(i + 1)) {
                ans = "Bad";
                break;
            }
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc String ans = "Good"; ans "Good" for (int i = 0; i < 3; i++) {
            if (str.charAt(i) == str.charAt(i + 1)) {
                ans = "Bad";
                break;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            if (str.charAt(i) == str.charAt(i + 1)) {
                ans = "Bad";
                break;
            }
        } {
            if (str.charAt(i) == str.charAt(i + 1)) {
                ans = "Bad";
                break;
            }
        } if (str.charAt(i) == str.charAt(i + 1)) {
                ans = "Bad";
                break;
            } str.charAt(i) == str.charAt(i + 1) str.charAt(i) str.charAt str i str.charAt(i + 1) str.charAt str i + 1 i 1 {
                ans = "Bad";
                break;
            } ans = "Bad" ans "Bad" break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);

        String str = sc.nextLine();

        String ans = "Good";
        for (int i = 0; i < 3; i++) {
            if (str.charAt(i) == str.charAt(i + 1)) {
                ans = "Bad";
                break;
            }
        }
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);

        String str = sc.nextLine();

        String ans = "Good";
        for (int i = 0; i < 3; i++) {
            if (str.charAt(i) == str.charAt(i + 1)) {
                ans = "Bad";
                break;
            }
        }
        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);

        String str = sc.nextLine();

        String ans = "Good";
        for (int i = 0; i < 3; i++) {
            if (str.charAt(i) == str.charAt(i + 1)) {
                ans = "Bad";
                break;
            }
        }
        System.out.println(ans);
    }
}
