#include <iostream>
using namespace std;

int main() {
	// your code goes here
	char str[25];
	char ans[25];
	int x;
	for (int i = 0;i<25;i++) {
	    str[i]='$';
	}
	cin >> str;
	for (int i = 0;i<25;i++) {
		if (str[i]='$') {
			x=i;
			break;
		}
	}
	for (int i = 0;i<(x+1)) {
		cout << str[x-i];
	}
	cout << endl;
	return 0;
}