"use strict";
function Main(input) {
  for(let i = 1; i < 4; i++) {
    if (input[i] === input[i - 1]) {
      console.log('Bad');
      return;
    }
  }
  console.log('Good');

}

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