#include<iostream>
using namespace std;
int main(){
    int a[5],b[5],c,d;
    cin>>a>>endl;
    cout<<strrev(a)<<endl;
    return0;
}