import java.io.*;
import java.util.*;

public class Main {

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        String S;
        S = sc.next();

        final Solver solver = new Solver();
        solver.solve(S);
    }
}

class Solver {
    public void solve(String S) {
        for (int i = 0; i < 3; i++) {
            if (S.charAt(i) == S.charAt(i+1)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");
    }
}
 import java.io.*; io.* java import java.util.*; util.* java public class Main {

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        String S;
        S = sc.next();

        final Solver solver = new Solver();
        solver.solve(S);
    }
} Main public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        String S;
        S = sc.next();

        final Solver solver = new Solver();
        solver.solve(S);
    } main {
        final Scanner sc = new Scanner(System.in);
        String S;
        S = sc.next();

        final Solver solver = new Solver();
        solver.solve(S);
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S; S S = sc.next() S sc.next() sc.next sc final Solver solver = new Solver(); solver new Solver() solver.solve(S) solver.solve solver S final String[] args args class Solver {
    public void solve(String S) {
        for (int i = 0; i < 3; i++) {
            if (S.charAt(i) == S.charAt(i+1)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");
    }
} Solver public void solve(String S) {
        for (int i = 0; i < 3; i++) {
            if (S.charAt(i) == S.charAt(i+1)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");
    } solve {
        for (int i = 0; i < 3; i++) {
            if (S.charAt(i) == S.charAt(i+1)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");
    } for (int i = 0; i < 3; i++) {
            if (S.charAt(i) == S.charAt(i+1)) {
                System.out.println("Bad");
                return;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            if (S.charAt(i) == S.charAt(i+1)) {
                System.out.println("Bad");
                return;
            }
        } {
            if (S.charAt(i) == S.charAt(i+1)) {
                System.out.println("Bad");
                return;
            }
        } if (S.charAt(i) == S.charAt(i+1)) {
                System.out.println("Bad");
                return;
            } S.charAt(i) == S.charAt(i+1) S.charAt(i) S.charAt S i S.charAt(i+1) S.charAt S i+1 i 1 {
                System.out.println("Bad");
                return;
            } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; System.out.println("Good") System.out.println System.out System System.out "Good" String S S public class Main {

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        String S;
        S = sc.next();

        final Solver solver = new Solver();
        solver.solve(S);
    }
} public class Main {

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        String S;
        S = sc.next();

        final Solver solver = new Solver();
        solver.solve(S);
    }
} Main
import java.io.*;
import java.util.*;

public class Main {

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        String S;
        S = sc.next();

        final Solver solver = new Solver();
        solver.solve(S);
    }
}

class Solver {
    public void solve(String S) {
        for (int i = 0; i < 3; i++) {
            if (S.charAt(i) == S.charAt(i+1)) {
                System.out.println("Bad");
                return;
            }
        }
        System.out.println("Good");
    }
}

