var s=readLine()!
let start=s.startIndex
let end=s.endIndex
var index0=start
var judge=0
for _ in 0...3{
  var index1=s.index(after: index0)
  if s[index0]==s[index1]{
    judge=1
  }
  index0=s.index(after: index0)
}
if judge==0{
  print("Good")
}else{
  print("Bad")
}