object Main {

  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)

    if (scala.io.StdIn.readLine().sliding(2).map(a => a(0) == a(1)).exists(identity))
      println("Bad")
    else
      println("Good")

  }

}
