#include using namespace std; using ll = long long; #define rep(i,n) for(int i=0;i<(int)(n);i++) int main(){ string a,p,q; cin>>a>>p>>q; if(p==q) cout<<"No\n"; else cout<<"Yes\n"; }