The translation from the Berland language into the Birland language is not an easy task. Those languages are very similar: a berlandish word differs from a birlandish word with the same meaning a little: it is spelled (and pronounced) reversely. For example, a Berlandish word code corresponds to a Birlandish word edoc. However, it's easy to make a mistake during the «translation». Vasya translated word *s* from Berlandish into Birlandish as *t*. Help him: find out if he translated the word correctly.
The first line contains word *s*, the second line contains word *t*. The words consist of lowercase Latin letters. The input data do not consist unnecessary spaces. The words are not empty and their lengths do not exceed 100 symbols.
#include<bits/stdc++.h>
#include<stdio.h>
#include<ctype.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define code using namespace std;
#define ll long long
#define dl double
#define str string
#define YES printf("YES\n");
#define Yes printf("Yes\n");
#define yes printf("yes\n");
#define NO printf("NO\n");
#define No printf("No\n");
#define no printf("no\n");
#define loop int t;cin>>t;while(t--)
#define puts printf
#define gcd __gcd
#define elif else if
#define stop break;
#define go continue;
#define _x_ exit(0);
#define suru begin()
#define ses end()
#define END return 0;
#define start int main()
#define vi vector<int>
#define vs vector<str>
#define vii vector<ll int>
#define si set<int>
#define sii set<ll int>
#define gi greater<int>
#define pb push_back
#define ppb pop_back
#define TurboSpeed ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
code
void solve(){
    str s1,s2;
    cin>>s1>>s2;
    reverse(s2.suru,s2.ses);
    if (s1==s2){YES}
    else{NO}
}





































start{
    TurboSpeed
    solve();
    END
}