'use strict';
(function(input){
  input=input.trim().split('').map(x=>x-0);
  let a=false;
  for(let i=0;i<=2;i++){
    a=a||(input[i]===input[i+1]);
  }
  let ans=(a?'Good':'Bad');
  console.log(ans);
})(require('fs').readFileSync('/dev/stdin','utf8'));