#include using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); string A,P,Q; cin>>A>>P>>Q; cout<<(P==Q?"No\n":"Yes\n"); }