#include <iostream>
using namespace std;

int main(){
	char ori[20], rev[20];
	cin >> ori;
	
	int size = 0;

	for(int i = 0; ori[i] != 0; i++){
		size++;
	}

	
	for(int i = 0; i < size; i++){
		rev[i] = ori[size-1-i];
	}
	rev[size] = 0;
	
	cout << rev << endl;
	
	return(0);
}