import std.stdio, std.string, std.conv, std.algorithm, std.range, std.array, std.typecons;

void main() {
    auto s = readln.strip;
    if (s[0] == s[1] || s[1] == s[2] || s[2] == s[3]) {
        writeln("Bad");
    } else {
        writeln("Good");
    }
}
