import java.util.*;

public class Main {

    public static List<List<Integer>> switchList;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        sc.close();

        boolean isBad = false;
        char last = Character.MIN_VALUE;
        for (int i = 0; i < S.length(); i++) {
            char a = S.charAt(i);
            if (a == last) {
                isBad = true;
                break;
            }
            last = a;
        }
        if (isBad) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }

} import java.util.*; util.* java public class Main {

    public static List<List<Integer>> switchList;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        sc.close();

        boolean isBad = false;
        char last = Character.MIN_VALUE;
        for (int i = 0; i < S.length(); i++) {
            char a = S.charAt(i);
            if (a == last) {
                isBad = true;
                break;
            }
            last = a;
        }
        if (isBad) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }

} Main public static List<List<Integer>> switchList; switchList public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        sc.close();

        boolean isBad = false;
        char last = Character.MIN_VALUE;
        for (int i = 0; i < S.length(); i++) {
            char a = S.charAt(i);
            if (a == last) {
                isBad = true;
                break;
            }
            last = a;
        }
        if (isBad) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        sc.close();

        boolean isBad = false;
        char last = Character.MIN_VALUE;
        for (int i = 0; i < S.length(); i++) {
            char a = S.charAt(i);
            if (a == last) {
                isBad = true;
                break;
            }
            last = a;
        }
        if (isBad) {
            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 sc.close() sc.close sc boolean isBad = false; isBad false char last = Character.MIN_VALUE; last Character.MIN_VALUE Character Character.MIN_VALUE for (int i = 0; i < S.length(); i++) {
            char a = S.charAt(i);
            if (a == last) {
                isBad = true;
                break;
            }
            last = a;
        } int i = 0; int i = 0; i 0 i < S.length() i S.length() S.length S i++ i++ i {
            char a = S.charAt(i);
            if (a == last) {
                isBad = true;
                break;
            }
            last = a;
        } {
            char a = S.charAt(i);
            if (a == last) {
                isBad = true;
                break;
            }
            last = a;
        } char a = S.charAt(i); a S.charAt(i) S.charAt S i if (a == last) {
                isBad = true;
                break;
            } a == last a last {
                isBad = true;
                break;
            } isBad = true isBad true break; last = a last a if (isBad) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        } isBad {
            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 public class Main {

    public static List<List<Integer>> switchList;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        sc.close();

        boolean isBad = false;
        char last = Character.MIN_VALUE;
        for (int i = 0; i < S.length(); i++) {
            char a = S.charAt(i);
            if (a == last) {
                isBad = true;
                break;
            }
            last = a;
        }
        if (isBad) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }

} public class Main {

    public static List<List<Integer>> switchList;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        sc.close();

        boolean isBad = false;
        char last = Character.MIN_VALUE;
        for (int i = 0; i < S.length(); i++) {
            char a = S.charAt(i);
            if (a == last) {
                isBad = true;
                break;
            }
            last = a;
        }
        if (isBad) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }

} Main
import java.util.*;

public class Main {

    public static List<List<Integer>> switchList;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        sc.close();

        boolean isBad = false;
        char last = Character.MIN_VALUE;
        for (int i = 0; i < S.length(); i++) {
            char a = S.charAt(i);
            if (a == last) {
                isBad = true;
                break;
            }
            last = a;
        }
        if (isBad) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }

}