#include <iostream>
using namespace std;

void swap(char &a,char &b){
	char temp=a;
	a=b;
	b=temp;
}

int main(){
	string s;
	getline(cin,s);
	unsigned int len=s.length();
	for(unsigned int i=0;i<len/2;i++)
		swap(s[i],s[len-i-1]);
	cout<<s<<"\n";
	return 0;
}