#include <iostream>
#include <queue>
#include <stack>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <string.h>
#include <string>
#include <cmath>
#include <map>
using namespace std;

#define rep(i,n) for(int i=0;i<int(n);++i)

static const double PI=6*asin(0.5);

char t;
stack<char> qu;

int main(){
	while(cin>>t){
		qu.push(t);
	}
	while(!qu.empty()){
		cout<<qu.top();
		qu.pop();
	}
	cout<<endl;
	return 0;
}