import scala.annotation.tailrec
import scala.io.StdIn

object Main extends App {
  val S = StdIn.readLine()

  @tailrec
  def rec(currentIdx: Int = 0): Boolean = {
    if (currentIdx == 3) {
      true
    } else {
      if (S.charAt(currentIdx) == S.charAt(currentIdx + 1)) {
        false
      } else {
        rec(currentIdx + 1)
      }
    }
  }

  if (rec()) {
    println("Good")
  } else {
    println("Bad")
  }
}