import std.stdio, std.string;

void main() {
    string s = readln.chomp;
    bool ok = true;
    foreach (i; 1 .. 4) {
        if (s[i] == s[i-1]) ok = false;
    }
    writeln(ok ? "Good" : "Bad");
}