import scala.io.{StdIn => in}

object Main extends App {
  val s = in.readLine.toCharArray
  val res = (0 until 3).map(i => s(i) != s(i+1)).forall(_ ==true)
  val ans = if(res) "Goog" else "Bad"
  println(ans)
}