import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String[] c =a.split("");
        int bad = 0;
        for (int i = 0; i <= 2; i++) {
            if(c[i].equals(c[i+1])){
                bad++;
            }
        }
        if (bad >= 1) {
            System.out.println("Bad");
        } else {
            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 a = sc.next();
        String[] c =a.split("");
        int bad = 0;
        for (int i = 0; i <= 2; i++) {
            if(c[i].equals(c[i+1])){
                bad++;
            }
        }
        if (bad >= 1) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String[] c =a.split("");
        int bad = 0;
        for (int i = 0; i <= 2; i++) {
            if(c[i].equals(c[i+1])){
                bad++;
            }
        }
        if (bad >= 1) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String[] c =a.split("");
        int bad = 0;
        for (int i = 0; i <= 2; i++) {
            if(c[i].equals(c[i+1])){
                bad++;
            }
        }
        if (bad >= 1) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String[] c =a.split(""); c a.split("") a.split a "" int bad = 0; bad 0 for (int i = 0; i <= 2; i++) {
            if(c[i].equals(c[i+1])){
                bad++;
            }
        } int i = 0; int i = 0; i 0 i <= 2 i 2 i++ i++ i {
            if(c[i].equals(c[i+1])){
                bad++;
            }
        } {
            if(c[i].equals(c[i+1])){
                bad++;
            }
        } if(c[i].equals(c[i+1])){
                bad++;
            } c[i].equals(c[i+1]) c[i].equals c[i] c i c[i+1] c i+1 i 1 {
                bad++;
            } bad++ bad if (bad >= 1) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        } bad >= 1 bad 1 {
            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 void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String[] c =a.split("");
        int bad = 0;
        for (int i = 0; i <= 2; i++) {
            if(c[i].equals(c[i+1])){
                bad++;
            }
        }
        if (bad >= 1) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String[] c =a.split("");
        int bad = 0;
        for (int i = 0; i <= 2; i++) {
            if(c[i].equals(c[i+1])){
                bad++;
            }
        }
        if (bad >= 1) {
            System.out.println("Bad");
        } else {
            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 a = sc.next();
        String[] c =a.split("");
        int bad = 0;
        for (int i = 0; i <= 2; i++) {
            if(c[i].equals(c[i+1])){
                bad++;
            }
        }
        if (bad >= 1) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }
}