object Main {

  def main(args: Array[String]) = {

    val s: String = io.StdIn.readLine()
    val t = s.distinct
    val ans = if (t.length != 1) {
      "Yes"
    } else {
      "No"
    }

    println(ans)
  }
}
