import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        sc.close();
        if (InputBad(S)) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }
    public static boolean InputBad(String S) {
        if (S.length() < 2) {
            return false;
        }
        if (S.charAt(0) == S.charAt(1)) {
            return true;
        }
        return InputBad(S.substring(1));
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        sc.close();
        if (InputBad(S)) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }
    public static boolean InputBad(String S) {
        if (S.length() < 2) {
            return false;
        }
        if (S.charAt(0) == S.charAt(1)) {
            return true;
        }
        return InputBad(S.substring(1));
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        sc.close();
        if (InputBad(S)) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        sc.close();
        if (InputBad(S)) {
            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 if (InputBad(S)) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        } InputBad(S) InputBad S {
            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 static boolean InputBad(String S) {
        if (S.length() < 2) {
            return false;
        }
        if (S.charAt(0) == S.charAt(1)) {
            return true;
        }
        return InputBad(S.substring(1));
    } InputBad {
        if (S.length() < 2) {
            return false;
        }
        if (S.charAt(0) == S.charAt(1)) {
            return true;
        }
        return InputBad(S.substring(1));
    } if (S.length() < 2) {
            return false;
        } S.length() < 2 S.length() S.length S 2 {
            return false;
        } return false; false if (S.charAt(0) == S.charAt(1)) {
            return true;
        } S.charAt(0) == S.charAt(1) S.charAt(0) S.charAt S 0 S.charAt(1) S.charAt S 1 {
            return true;
        } return true; true return InputBad(S.substring(1)); InputBad(S.substring(1)) InputBad S.substring(1) S.substring S 1 String S S public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        sc.close();
        if (InputBad(S)) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }
    public static boolean InputBad(String S) {
        if (S.length() < 2) {
            return false;
        }
        if (S.charAt(0) == S.charAt(1)) {
            return true;
        }
        return InputBad(S.substring(1));
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        sc.close();
        if (InputBad(S)) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }
    public static boolean InputBad(String S) {
        if (S.length() < 2) {
            return false;
        }
        if (S.charAt(0) == S.charAt(1)) {
            return true;
        }
        return InputBad(S.substring(1));
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        sc.close();
        if (InputBad(S)) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }
    public static boolean InputBad(String S) {
        if (S.length() < 2) {
            return false;
        }
        if (S.charAt(0) == S.charAt(1)) {
            return true;
        }
        return InputBad(S.substring(1));
    }
}
