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