
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String res = (S.charAt(0) == S.charAt(1)) || (S.charAt(1) == S.charAt(2)) || (S.charAt(2) == S.charAt(3)) ? "Bad" : "Good";
        System.out.println(res);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String res = (S.charAt(0) == S.charAt(1)) || (S.charAt(1) == S.charAt(2)) || (S.charAt(2) == S.charAt(3)) ? "Bad" : "Good";
        System.out.println(res);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String res = (S.charAt(0) == S.charAt(1)) || (S.charAt(1) == S.charAt(2)) || (S.charAt(2) == S.charAt(3)) ? "Bad" : "Good";
        System.out.println(res);
    } main {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String res = (S.charAt(0) == S.charAt(1)) || (S.charAt(1) == S.charAt(2)) || (S.charAt(2) == S.charAt(3)) ? "Bad" : "Good";
        System.out.println(res);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String res = (S.charAt(0) == S.charAt(1)) || (S.charAt(1) == S.charAt(2)) || (S.charAt(2) == S.charAt(3)) ? "Bad" : "Good"; res (S.charAt(0) == S.charAt(1)) || (S.charAt(1) == S.charAt(2)) || (S.charAt(2) == S.charAt(3)) ? "Bad" : "Good" (S.charAt(0) == S.charAt(1)) || (S.charAt(1) == S.charAt(2)) || (S.charAt(2) == S.charAt(3)) (S.charAt(0) == S.charAt(1)) || (S.charAt(1) == S.charAt(2)) || (S.charAt(2) == S.charAt(3)) (S.charAt(0) == S.charAt(1)) S.charAt(0) S.charAt S 0 S.charAt(1) S.charAt S 1 (S.charAt(1) == S.charAt(2)) S.charAt(1) S.charAt S 1 S.charAt(2) S.charAt S 2 (S.charAt(2) == S.charAt(3)) S.charAt(2) S.charAt S 2 S.charAt(3) S.charAt S 3 "Bad" "Good" System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String res = (S.charAt(0) == S.charAt(1)) || (S.charAt(1) == S.charAt(2)) || (S.charAt(2) == S.charAt(3)) ? "Bad" : "Good";
        System.out.println(res);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String res = (S.charAt(0) == S.charAt(1)) || (S.charAt(1) == S.charAt(2)) || (S.charAt(2) == S.charAt(3)) ? "Bad" : "Good";
        System.out.println(res);
    }
} Main

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String res = (S.charAt(0) == S.charAt(1)) || (S.charAt(1) == S.charAt(2)) || (S.charAt(2) == S.charAt(3)) ? "Bad" : "Good";
        System.out.println(res);
    }
}
