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