#include<iostream>
#include<cmath>
#include<stdio.h>
#include<algorithm>
#include<string>
#include<cctype>
using namespace std;

int main(){
	string a;
	cin >> a;
	for (int i = a.size() - 1; i >= 0; i--){
		cout << a[i];
	}
	cout << endl;

	return 0;
}
