import java.util.Scanner

object Main extends App{
  val sc = new Scanner(System.in)

  val s = sc.next
  val cs = strSplit(s)

  val judge =
    cs(0) == cs(1) ||
    cs(1) == cs(2) ||
    cs(2) == cs(3)

  val res = if(judge) "Bad" else "Good"

  println(res)

  def strSplit(str: String): Array[String] ={
    str.split("(?<=.)")
  }

}
