//C字符串逆序输出
#include "pch.h"
#include <stdio.h>
#include<string.h>
using namespace std;
int main()
{
char str[20];
scanf("%s", str);
unsigned int i = 0;
int j = strlen(str) - 1;
char temp;
for (i = 0; i <= strlen(str)/2; i++,j--)
{
temp = str[i]; str[i] = str[j]; str[j] = temp;
}
printf("%s\n", str);
}