#include "bits/stdc++.h" using namespace std; using ll=long long; void solve(){ string a,p,q;cin>>a>>p>>q; if(p==q){ cout<<"No\n"; } else{ cout<<"Yes\n"; } } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int t=1; // cin>>t; while(t--){ solve(); } }