function Main(input){
	var array = [];
	var difficultFlag = 0;
	for(var i = 0; i<2;i++){	
		array.push(input.slice(i,i+3));
      	if(array[0] == array[1] || array[1] == array[2]){
        	difficultFlag = 1; 
        }
    }
  	if(difficultFlag == 1){
     console.log('Bad'); 
    }else{
     console.log('Good'); 
    }

}



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