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