#include using namespace std; int main() { string P,Q; cin>>P>>P>>Q; cout<<(P!=Q?"Yes":"No")<