var count = 0;

function Main(input) {

	input = input.split("");
	for(var i = 0;i<3;i++){
	    if(input[i] === input[i+1]) count++;
	}
	
	if(count === 0){
	    console.log("Good");
	}else{
	    console.log("Bad");
	}
	
}

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