import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String code = sc.nextLine().replace("\n", "");
        sc.close();

        for (int i = 1; i < code.length(); i++) {
            if (code.charAt(i - 1) == code.charAt(i)) {
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String code = sc.nextLine().replace("\n", "");
        sc.close();

        for (int i = 1; i < code.length(); i++) {
            if (code.charAt(i - 1) == code.charAt(i)) {
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String code = sc.nextLine().replace("\n", "");
        sc.close();

        for (int i = 1; i < code.length(); i++) {
            if (code.charAt(i - 1) == code.charAt(i)) {
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    } main {
        Scanner sc = new Scanner(System.in);
        String code = sc.nextLine().replace("\n", "");
        sc.close();

        for (int i = 1; i < code.length(); i++) {
            if (code.charAt(i - 1) == code.charAt(i)) {
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String code = sc.nextLine().replace("\n", ""); code sc.nextLine().replace("\n", "") sc.nextLine().replace sc.nextLine() sc.nextLine sc "\n" "" sc.close() sc.close sc for (int i = 1; i < code.length(); i++) {
            if (code.charAt(i - 1) == code.charAt(i)) {
                System.out.println("Bad");
                System.exit(0);
            }
        } int i = 1; int i = 1; i 1 i < code.length() i code.length() code.length code i++ i++ i {
            if (code.charAt(i - 1) == code.charAt(i)) {
                System.out.println("Bad");
                System.exit(0);
            }
        } {
            if (code.charAt(i - 1) == code.charAt(i)) {
                System.out.println("Bad");
                System.exit(0);
            }
        } if (code.charAt(i - 1) == code.charAt(i)) {
                System.out.println("Bad");
                System.exit(0);
            } code.charAt(i - 1) == code.charAt(i) code.charAt(i - 1) code.charAt code i - 1 i 1 code.charAt(i) code.charAt code i {
                System.out.println("Bad");
                System.exit(0);
            } System.out.println("Bad") System.out.println System.out System System.out "Bad" System.exit(0) System.exit System 0 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 code = sc.nextLine().replace("\n", "");
        sc.close();

        for (int i = 1; i < code.length(); i++) {
            if (code.charAt(i - 1) == code.charAt(i)) {
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    }
} public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String code = sc.nextLine().replace("\n", "");
        sc.close();

        for (int i = 1; i < code.length(); i++) {
            if (code.charAt(i - 1) == code.charAt(i)) {
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String code = sc.nextLine().replace("\n", "");
        sc.close();

        for (int i = 1; i < code.length(); i++) {
            if (code.charAt(i - 1) == code.charAt(i)) {
                System.out.println("Bad");
                System.exit(0);
            }
        }
        System.out.println("Good");
    }
}
