    function Main(input) {
      var numbers = new Array(input[0], input[1], input[2], input[3]);
      for (var i = 0; i <= numbers.length; i++) {
        if (input[i] - input[++i] == 0) {
          console.log("Bad");
          break;
        } else if (input[3] - input[2] || input[2] - input[1] || input[1] - input[0]) {
          console.log("good");
          break;
        }
      }
    }

    Main(require("fs").readFileSync("/dev/stdin", "utf8"));