#include
#include
using namespace std;
int main() {
int t;
while(t–){
string s1,s2;
cin>>s1;
cin>>s2;
if(s1.compare(s2)==0){
cout<<“YES”<<endl;
}
reverse(s1.begin(), s1.end());
else if((s1.length())%2==0 && s1.compare(s2)==0){
cout<<“YES”<<endl;
}
else{
cout<<“NO”<<endl;
}
}
return 0;
}