fun main(args: Array<String>) {
    val s = readLine()!!.toString().toCharArray()
    var prev: String? = null
    s.forEach {
        prev?.let { p ->
            if (it.toString() != p) {
                return println("Yes")
            }
        }
        prev = it.toString()
    }
    println("No")
}