#include <stdio.h>

#include <iostream>

int main() {

	const int len = 20;
	char charr[len + 1];

	scanf("%s", charr);

	for (int i = 20; i >= 0; i--) {
		if (charr[i] != NULL)
			std::cout << charr[i];
	}

}