#include #include #include #include #include using Modint = atcoder::static_modint<998244353>; using namespace std; using i64 = long long; using u64 = unsigned long long; #define rep(i,n) for(int i=0; i<(int)(n); i++) const i64 INF = 1001001001001001001; void testcase(){ 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); testcase(); return 0; }