#include <iostream>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
if(a==b || b==c || a==c)
cout<<"YES";
else
cout<<"NO";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CmludCBhLGIsYzsKY2luPj5hPj5iPj5jOwppZihhPT1iIHx8IGI9PWMgfHwgYT09YykKY291dDw8IllFUyI7CmVsc2UKY291dDw8Ik5PIjsKCXJldHVybiAwOwp9