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

/* char* reverse_str(char *a)
{
	int data_size = sizeof(*a) / sizeof(a[0])- 1;
	for(int i=0;i<=data_size;i++){
		char temp1 = a[i];
		a[i] = a[data_size-i];
		a[data_size-i] = temp1;
	}
	return a;
} */

int main()
{
	char *a;
	/* char str[512];
	cin.getline(str,512); */
	string str;
	cin >> str;
	int data_size = str.length() - 1;
	cout << "data_size=" << data_size << endl;
	for(int i=0;i<=data_size;i++)
		cout << str[data_size - i];
	// cout << endl;
	return 0;
}
	