#include using namespace std; int main(){ string s, t; cin >> s >> t; cout << "YES" << endl; return 0; }