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

T diff(T)(const T a, const T b) { return a > b ? a - b : b - a; }
T diff(T)(const ref T a, const ref T b) { return a > b ? a - b : b - a; }

T[] readToArray(T)() {
    return readln.split.to!(T[]);
}

void main() {
    const s = readln;
    char prev = '\0';
    bool nikui = false;
    foreach(c; s) {
        if (c == prev) {nikui = true; break;}
        prev = c;
    }
    writeln(nikui ? "Bad" : "Good");
}
