import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ASecurity solver = new ASecurity();
        solver.solve(1, in, out);
        out.close();
    }

    static class ASecurity {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            String S = in.next();
            boolean ok = false;
            if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) || S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) || S.charAt(1) == S.charAt(2) || S.charAt(2) == S.charAt(3)) {
                ok = true;

            }
            out.println(ok ? "Bad" : "Good");

        }

    }
}
 import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ASecurity solver = new ASecurity();
        solver.solve(1, in, out);
        out.close();
    }

    static class ASecurity {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            String S = in.next();
            boolean ok = false;
            if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) || S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) || S.charAt(1) == S.charAt(2) || S.charAt(2) == S.charAt(3)) {
                ok = true;

            }
            out.println(ok ? "Bad" : "Good");

        }

    }
} Main public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ASecurity solver = new ASecurity();
        solver.solve(1, in, out);
        out.close();
    } main {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ASecurity solver = new ASecurity();
        solver.solve(1, in, out);
        out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner in = new Scanner(inputStream); in new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) ASecurity solver = new ASecurity(); solver new ASecurity() solver.solve(1, in, out) solver.solve solver 1 in out out.close() out.close out String[] args args static class ASecurity {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            String S = in.next();
            boolean ok = false;
            if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) || S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) || S.charAt(1) == S.charAt(2) || S.charAt(2) == S.charAt(3)) {
                ok = true;

            }
            out.println(ok ? "Bad" : "Good");

        }

    } ASecurity public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            String S = in.next();
            boolean ok = false;
            if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) || S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) || S.charAt(1) == S.charAt(2) || S.charAt(2) == S.charAt(3)) {
                ok = true;

            }
            out.println(ok ? "Bad" : "Good");

        } solve {
            // 入力
            String S = in.next();
            boolean ok = false;
            if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) || S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) || S.charAt(1) == S.charAt(2) || S.charAt(2) == S.charAt(3)) {
                ok = true;

            }
            out.println(ok ? "Bad" : "Good");

        } String S = in.next(); S in.next() in.next in boolean ok = false; ok false if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) || S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) || S.charAt(1) == S.charAt(2) || S.charAt(2) == S.charAt(3)) {
                ok = true;

            } 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 {
                ok = true;

            } ok = true ok true if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) || S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) || S.charAt(1) == S.charAt(2) || S.charAt(2) == S.charAt(3)) {
                ok = true;

            } S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) || 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(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(1) == S.charAt(2) && S.charAt(2) == S.charAt(3) 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 {
                ok = true;

            } ok = true ok true if (S.charAt(0) == S.charAt(1) || S.charAt(1) == S.charAt(2) || S.charAt(2) == S.charAt(3)) {
                ok = true;

            } 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 {
                ok = true;

            } ok = true ok true out.println(ok ? "Bad" : "Good") out.println out ok ? "Bad" : "Good" ok "Bad" "Good" int testNumber testNumber Scanner in in PrintWriter out out public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ASecurity solver = new ASecurity();
        solver.solve(1, in, out);
        out.close();
    }

    static class ASecurity {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            String S = in.next();
            boolean ok = false;
            if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) || S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) || S.charAt(1) == S.charAt(2) || S.charAt(2) == S.charAt(3)) {
                ok = true;

            }
            out.println(ok ? "Bad" : "Good");

        }

    }
} public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ASecurity solver = new ASecurity();
        solver.solve(1, in, out);
        out.close();
    }

    static class ASecurity {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            String S = in.next();
            boolean ok = false;
            if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) || S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) || S.charAt(1) == S.charAt(2) || S.charAt(2) == S.charAt(3)) {
                ok = true;

            }
            out.println(ok ? "Bad" : "Good");

        }

    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ASecurity solver = new ASecurity();
        solver.solve(1, in, out);
        out.close();
    }

    static class ASecurity {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            // 入力
            String S = in.next();
            boolean ok = false;
            if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) && S.charAt(1) == S.charAt(2) || S.charAt(1) == S.charAt(2) && S.charAt(2) == S.charAt(3)) {
                ok = true;

            } else if (S.charAt(0) == S.charAt(1) || S.charAt(1) == S.charAt(2) || S.charAt(2) == S.charAt(3)) {
                ok = true;

            }
            out.println(ok ? "Bad" : "Good");

        }

    }
}

