process.stdin.resume();
process.stdin.setEncoding('utf8');

var lines = [];
var reader = require('readline').createInterface({
    input: process.stdin,
    output: process.stdout
});
reader.on('line', (line) => {
  lines.push(line)
});
reader.on('close', () => {
	var n = [...lines[0]]
    var result = 'Good'
    for (var k in n) {
     	if (n[k] === n[k - 1]) {
          result = 'Bad'
          break
        }
    }
	console.log(result)
});