#include <iostream>
using namespace std;

#define MAX 20

int main(){
	char str[MAX + 1];

	cin >> str;

	int flag = 0, i = 0;
	while( !flag || i >= 0){
		if( flag ){
			cout << str[i--];
		} else {
			if(str[i] == '\0'){
				i--;
				flag = 1;
			} else {
				i++;
			}
		}
	}
	cout << endl;
	return 0;
}
