function main(input) {
    const s = input.split('');
    let ans = 'Good';
    for (let i = 0; i < s.length - 1; i++) {
        if (s[i] === s[i + 1]) {
            ans = 'Bad';
        }
    }
    console.log(ans);
}

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