import Foundation
 
let array = readLine()!.componentsSeparatedByString(" ").map { Int($0)! }

var answer = false
for i in array {
	if i != array[0] {
    	answer = true 
    }
}
print(answer ? "YES" : "NO")