#include using namespace std; int main() { string a, b, c; cin >> a >> b >> c; if(b == c)cout << "No" << endl; else cout << "Yes" << endl; }