"use strict";
process.stdin.resume();
process.stdin.setEncoding('utf8');
let input = '';

process.stdin.on('data', function(chunk) {
  input += chunk;
}).on('end', function() {
  let tmp = "";
  let result = "Good";
  for (let v of input) {
    if (v === tmp)
      result = "Bad";
    else
      tmp = v;
  }
  console.log(result);
});