"use strict"
function main(arg) {
    var s = arg.trim().split("\n")[0]
    s = s.split('')
    var bk = ''
    var isSuccess = true
    for (var i = 0; i < s.length; i++) {
        if (s[i] === bk) {
            isSuccess = false
        }
        bk = s[i]
    }
    if (isSuccess) {
        console.log('Good')
    } else {
        console.log('Bad')
    }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));