"use strict";
const Main = (input) =>{
   let xs = input.trim().split('');

  if(xs[0]==xs[1] || xs[1]==xs[2] || xs[2] == xs[3]){
    console.log('Bad');
  }else{
    console.log('Good');
  }
   
}
Main(require('fs').readFileSync('/dev/stdin','utf8'));