import java.io.*;
// import java.math.*;
// import java.util.*;
// import java.util.Map.*;
// import java.util.stream.*;

public class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        String S = reader.readLine();
        Boolean flg = false;
        for (int i = 1; i < S.length(); i++) {
            if (S.charAt (i - 1) == S.charAt (i)) {
                flg = true;
                break;
            }
        }
        System.out.println (flg ? "Bad" : "Good");
        return;
    }
} import java.io.*; io.* java public class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        String S = reader.readLine();
        Boolean flg = false;
        for (int i = 1; i < S.length(); i++) {
            if (S.charAt (i - 1) == S.charAt (i)) {
                flg = true;
                break;
            }
        }
        System.out.println (flg ? "Bad" : "Good");
        return;
    }
} Main public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        String S = reader.readLine();
        Boolean flg = false;
        for (int i = 1; i < S.length(); i++) {
            if (S.charAt (i - 1) == S.charAt (i)) {
                flg = true;
                break;
            }
        }
        System.out.println (flg ? "Bad" : "Good");
        return;
    } main {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        String S = reader.readLine();
        Boolean flg = false;
        for (int i = 1; i < S.length(); i++) {
            if (S.charAt (i - 1) == S.charAt (i)) {
                flg = true;
                break;
            }
        }
        System.out.println (flg ? "Bad" : "Good");
        return;
    } BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in)); reader new BufferedReader (new InputStreamReader (System.in)) String S = reader.readLine(); S reader.readLine() reader.readLine reader Boolean flg = false; flg false for (int i = 1; i < S.length(); i++) {
            if (S.charAt (i - 1) == S.charAt (i)) {
                flg = true;
                break;
            }
        } int i = 1; int i = 1; i 1 i < S.length() i S.length() S.length S i++ i++ i {
            if (S.charAt (i - 1) == S.charAt (i)) {
                flg = true;
                break;
            }
        } {
            if (S.charAt (i - 1) == S.charAt (i)) {
                flg = true;
                break;
            }
        } if (S.charAt (i - 1) == S.charAt (i)) {
                flg = true;
                break;
            } S.charAt (i - 1) == S.charAt (i) S.charAt (i - 1) S.charAt S i - 1 i 1 S.charAt (i) S.charAt S i {
                flg = true;
                break;
            } flg = true flg true break; System.out.println (flg ? "Bad" : "Good") System.out.println System.out System System.out flg ? "Bad" : "Good" flg "Bad" "Good" return; String[] args args public class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        String S = reader.readLine();
        Boolean flg = false;
        for (int i = 1; i < S.length(); i++) {
            if (S.charAt (i - 1) == S.charAt (i)) {
                flg = true;
                break;
            }
        }
        System.out.println (flg ? "Bad" : "Good");
        return;
    }
} public class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        String S = reader.readLine();
        Boolean flg = false;
        for (int i = 1; i < S.length(); i++) {
            if (S.charAt (i - 1) == S.charAt (i)) {
                flg = true;
                break;
            }
        }
        System.out.println (flg ? "Bad" : "Good");
        return;
    }
} Main
import java.io.*;
// import java.math.*;
// import java.util.*;
// import java.util.Map.*;
// import java.util.stream.*;

public class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        String S = reader.readLine();
        Boolean flg = false;
        for (int i = 1; i < S.length(); i++) {
            if (S.charAt (i - 1) == S.charAt (i)) {
                flg = true;
                break;
            }
        }
        System.out.println (flg ? "Bad" : "Good");
        return;
    }
}