function Main(input) {
	var a = input.charAt(0);
	var r = 0;
	for(var i = 1; i < 4; i++) {
		if(a == input.charAt(i)){
			r = 1;
		}
		a = input.charAt(i);
	}
	if(r == 1){
		console.log("Bad");
	}else{
		console.log("Good");
	}
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));