function Main(input) {
	if (input[0] === input[1]) console.log('Bad')
	else if (input[1] === input[2]) console.log('Bad')
	else if (input[2] === input[3]) console.log('Bad')
	else console.log('Good')
}

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