import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws Exception {
        try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
            String pin = reader.readLine();
            char[] chars = pin.toCharArray();
            char prev = ' ';
            boolean first = true;
            for (char c : chars) {
                if (!first) {
                    if (prev == c) {
                        System.out.println("Bad");
                        return;
                    }
                }
                first = false;
                prev = c;
            }
            System.out.println("Good");
        }
    }

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

    public static void main(String[] args) throws Exception {
        try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
            String pin = reader.readLine();
            char[] chars = pin.toCharArray();
            char prev = ' ';
            boolean first = true;
            for (char c : chars) {
                if (!first) {
                    if (prev == c) {
                        System.out.println("Bad");
                        return;
                    }
                }
                first = false;
                prev = c;
            }
            System.out.println("Good");
        }
    }

} Main public static void main(String[] args) throws Exception {
        try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
            String pin = reader.readLine();
            char[] chars = pin.toCharArray();
            char prev = ' ';
            boolean first = true;
            for (char c : chars) {
                if (!first) {
                    if (prev == c) {
                        System.out.println("Bad");
                        return;
                    }
                }
                first = false;
                prev = c;
            }
            System.out.println("Good");
        }
    } main {
        try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
            String pin = reader.readLine();
            char[] chars = pin.toCharArray();
            char prev = ' ';
            boolean first = true;
            for (char c : chars) {
                if (!first) {
                    if (prev == c) {
                        System.out.println("Bad");
                        return;
                    }
                }
                first = false;
                prev = c;
            }
            System.out.println("Good");
        }
    } try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
            String pin = reader.readLine();
            char[] chars = pin.toCharArray();
            char prev = ' ';
            boolean first = true;
            for (char c : chars) {
                if (!first) {
                    if (prev == c) {
                        System.out.println("Bad");
                        return;
                    }
                }
                first = false;
                prev = c;
            }
            System.out.println("Good");
        } {
            String pin = reader.readLine();
            char[] chars = pin.toCharArray();
            char prev = ' ';
            boolean first = true;
            for (char c : chars) {
                if (!first) {
                    if (prev == c) {
                        System.out.println("Bad");
                        return;
                    }
                }
                first = false;
                prev = c;
            }
            System.out.println("Good");
        } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)) BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) String pin = reader.readLine(); pin reader.readLine() reader.readLine reader char[] chars = pin.toCharArray(); chars pin.toCharArray() pin.toCharArray pin char prev = ' '; prev ' ' boolean first = true; first true for (char c : chars) {
                if (!first) {
                    if (prev == c) {
                        System.out.println("Bad");
                        return;
                    }
                }
                first = false;
                prev = c;
            } char c chars {
                if (!first) {
                    if (prev == c) {
                        System.out.println("Bad");
                        return;
                    }
                }
                first = false;
                prev = c;
            } {
                if (!first) {
                    if (prev == c) {
                        System.out.println("Bad");
                        return;
                    }
                }
                first = false;
                prev = c;
            } if (!first) {
                    if (prev == c) {
                        System.out.println("Bad");
                        return;
                    }
                } !first first {
                    if (prev == c) {
                        System.out.println("Bad");
                        return;
                    }
                } if (prev == c) {
                        System.out.println("Bad");
                        return;
                    } prev == c prev c {
                        System.out.println("Bad");
                        return;
                    } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; first = false first false prev = c prev c 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) throws Exception {
        try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
            String pin = reader.readLine();
            char[] chars = pin.toCharArray();
            char prev = ' ';
            boolean first = true;
            for (char c : chars) {
                if (!first) {
                    if (prev == c) {
                        System.out.println("Bad");
                        return;
                    }
                }
                first = false;
                prev = c;
            }
            System.out.println("Good");
        }
    }

} public class Main {

    public static void main(String[] args) throws Exception {
        try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
            String pin = reader.readLine();
            char[] chars = pin.toCharArray();
            char prev = ' ';
            boolean first = true;
            for (char c : chars) {
                if (!first) {
                    if (prev == c) {
                        System.out.println("Bad");
                        return;
                    }
                }
                first = false;
                prev = c;
            }
            System.out.println("Good");
        }
    }

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws Exception {
        try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
            String pin = reader.readLine();
            char[] chars = pin.toCharArray();
            char prev = ' ';
            boolean first = true;
            for (char c : chars) {
                if (!first) {
                    if (prev == c) {
                        System.out.println("Bad");
                        return;
                    }
                }
                first = false;
                prev = c;
            }
            System.out.println("Good");
        }
    }

}