"use strict";

require("fs");

!function () {
  "use strict";

  !function () {
    !function (input) {
      var S = input.split("\n")[0];
      if (/11|22|33|44|55|66|77|88|99|00/.test(S)) console.log("Bad");else console.log("Good");
    }(require("fs").readFileSync("/dev/stdin", "utf8"));
  }();
}();
