import scala.io.Source

object Main extends App {
  val s = Source.stdin.getLines().toList.take(1).head
  val result = if (s.toSeq.distinct.unwrap.length > 1) {
    "Yes"
  } else {
    "No"
  }
  println(result)
}