import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String strs[] = sc.nextLine().split("");
        String old = "";
        for (String str : strs) {
            if ((!old.equals("")) && old.equals(str)) {
                System.out.println("Bad");
                return;
            }
            old = str;
        }
        System.out.println("Good");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String strs[] = sc.nextLine().split("");
        String old = "";
        for (String str : strs) {
            if ((!old.equals("")) && old.equals(str)) {
                System.out.println("Bad");
                return;
            }
            old = str;
        }
        System.out.println("Good");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String strs[] = sc.nextLine().split("");
        String old = "";
        for (String str : strs) {
            if ((!old.equals("")) && old.equals(str)) {
                System.out.println("Bad");
                return;
            }
            old = str;
        }
        System.out.println("Good");
    } main {
        Scanner sc = new Scanner(System.in);
        String strs[] = sc.nextLine().split("");
        String old = "";
        for (String str : strs) {
            if ((!old.equals("")) && old.equals(str)) {
                System.out.println("Bad");
                return;
            }
            old = str;
        }
        System.out.println("Good");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String strs[] = sc.nextLine().split(""); strs sc.nextLine().split("") sc.nextLine().split sc.nextLine() sc.nextLine sc "" String old = ""; old "" for (String str : strs) {
            if ((!old.equals("")) && old.equals(str)) {
                System.out.println("Bad");
                return;
            }
            old = str;
        } String str strs {
            if ((!old.equals("")) && old.equals(str)) {
                System.out.println("Bad");
                return;
            }
            old = str;
        } {
            if ((!old.equals("")) && old.equals(str)) {
                System.out.println("Bad");
                return;
            }
            old = str;
        } if ((!old.equals("")) && old.equals(str)) {
                System.out.println("Bad");
                return;
            } (!old.equals("")) && old.equals(str) (!old.equals("")) old.equals("") old.equals old "" old.equals(str) old.equals old str {
                System.out.println("Bad");
                return;
            } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; old = str old str 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 sc = new Scanner(System.in);
        String strs[] = sc.nextLine().split("");
        String old = "";
        for (String str : strs) {
            if ((!old.equals("")) && old.equals(str)) {
                System.out.println("Bad");
                return;
            }
            old = str;
        }
        System.out.println("Good");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String strs[] = sc.nextLine().split("");
        String old = "";
        for (String str : strs) {
            if ((!old.equals("")) && old.equals(str)) {
                System.out.println("Bad");
                return;
            }
            old = str;
        }
        System.out.println("Good");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String strs[] = sc.nextLine().split("");
        String old = "";
        for (String str : strs) {
            if ((!old.equals("")) && old.equals(str)) {
                System.out.println("Bad");
                return;
            }
            old = str;
        }
        System.out.println("Good");
    }
}
