import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

class Main {

    public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(""));
            List<Integer> numbers = new ArrayList<>();

            for (String s : input) {
                numbers.add(Integer.parseInt(s));
            }
            
            String result = "Good";
            for (int i = 0; i < numbers.size() - 1; i++) {
                if (numbers.get(i) == numbers.get(i + 1)) {
                    result = "Bad";
                    break;
                }
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.List; List java.util class Main {

    public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(""));
            List<Integer> numbers = new ArrayList<>();

            for (String s : input) {
                numbers.add(Integer.parseInt(s));
            }
            
            String result = "Good";
            for (int i = 0; i < numbers.size() - 1; i++) {
                if (numbers.get(i) == numbers.get(i + 1)) {
                    result = "Bad";
                    break;
                }
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }
} Main public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(""));
            List<Integer> numbers = new ArrayList<>();

            for (String s : input) {
                numbers.add(Integer.parseInt(s));
            }
            
            String result = "Good";
            for (int i = 0; i < numbers.size() - 1; i++) {
                if (numbers.get(i) == numbers.get(i + 1)) {
                    result = "Bad";
                    break;
                }
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    } main {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(""));
            List<Integer> numbers = new ArrayList<>();

            for (String s : input) {
                numbers.add(Integer.parseInt(s));
            }
            
            String result = "Good";
            for (int i = 0; i < numbers.size() - 1; i++) {
                if (numbers.get(i) == numbers.get(i + 1)) {
                    result = "Bad";
                    break;
                }
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    } try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(""));
            List<Integer> numbers = new ArrayList<>();

            for (String s : input) {
                numbers.add(Integer.parseInt(s));
            }
            
            String result = "Good";
            for (int i = 0; i < numbers.size() - 1; i++) {
                if (numbers.get(i) == numbers.get(i + 1)) {
                    result = "Bad";
                    break;
                }
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } IOException | NumberFormatException e {
            e.printStackTrace();
            System.exit(0);
        } e.printStackTrace() e.printStackTrace e System.exit(0) System.exit System 0 catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        } final Exception e {
            e.printStackTrace();
            System.exit(0);
        } e.printStackTrace() e.printStackTrace e System.exit(0) System.exit System 0 {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(""));
            List<Integer> numbers = new ArrayList<>();

            for (String s : input) {
                numbers.add(Integer.parseInt(s));
            }
            
            String result = "Good";
            for (int i = 0; i < numbers.size() - 1; i++) {
                if (numbers.get(i) == numbers.get(i + 1)) {
                    result = "Bad";
                    break;
                }
            }

            System.out.println(result);
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) List<String> input = Arrays.asList(br.readLine().split("")); input Arrays.asList(br.readLine().split("")) Arrays.asList Arrays br.readLine().split("") br.readLine().split br.readLine() br.readLine br "" List<Integer> numbers = new ArrayList<>(); numbers new ArrayList<>() for (String s : input) {
                numbers.add(Integer.parseInt(s));
            } String s input {
                numbers.add(Integer.parseInt(s));
            } {
                numbers.add(Integer.parseInt(s));
            } numbers.add(Integer.parseInt(s)) numbers.add numbers Integer.parseInt(s) Integer.parseInt Integer s String result = "Good"; result "Good" for (int i = 0; i < numbers.size() - 1; i++) {
                if (numbers.get(i) == numbers.get(i + 1)) {
                    result = "Bad";
                    break;
                }
            } int i = 0; int i = 0; i 0 i < numbers.size() - 1 i numbers.size() - 1 numbers.size() numbers.size numbers 1 i++ i++ i {
                if (numbers.get(i) == numbers.get(i + 1)) {
                    result = "Bad";
                    break;
                }
            } {
                if (numbers.get(i) == numbers.get(i + 1)) {
                    result = "Bad";
                    break;
                }
            } if (numbers.get(i) == numbers.get(i + 1)) {
                    result = "Bad";
                    break;
                } numbers.get(i) == numbers.get(i + 1) numbers.get(i) numbers.get numbers i numbers.get(i + 1) numbers.get numbers i + 1 i 1 {
                    result = "Bad";
                    break;
                } result = "Bad" result "Bad" break; System.out.println(result) System.out.println System.out System System.out result String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

class Main {

    public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(""));
            List<Integer> numbers = new ArrayList<>();

            for (String s : input) {
                numbers.add(Integer.parseInt(s));
            }
            
            String result = "Good";
            for (int i = 0; i < numbers.size() - 1; i++) {
                if (numbers.get(i) == numbers.get(i + 1)) {
                    result = "Bad";
                    break;
                }
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }
}