fun main(args: Array<String>) {
    val companies = readLine()!!.toCharArray()
    companies.forEach {
        if (!(it == companies[0])) {
            println("Yes")
            return
        }
    }
    println("No")
    
}