#include <iostream>
#include <string>
using namespace std;

int main(){
	char str1[21] = "", str2[21] = "";
	cin >> str1;
	int a = 0;
	for(int i = 0;i < 21;i++){
		if(str1[20 - i] != '\0'){
			str2[a] = str1[20 - i];
			a++;
		}
	}
	cout << str2;
    return 0;
}