function Main(input){
   input = input;
  
  	var num = String(input);
    var j = 1;
  	var judge = 0;
  	var array = num.split('');
  
  		for(var i=0;i<3;i++){
			if(array[i] == array[j]){
        		judge++;
        	}
          	else{
    			j++;
            }
		}
  
  	if(judge == 0){
      console.log('Good');
    }
    else{
      console.log('Bad');
    }
}
 Main(require("fs").readFileSync("/dev/stdin","utf-8"));