#include <stdio.h>
#include <string.h>
void swap(char *start, char *end)
{
for(; start<end; start++, end--)
{
*start = *start^*end;
*end = *start^*end;
*start = *start^*end;
}
}
int main(int argc, const char *argv[])
{
char crr[30] = "0";
gets(crr);
char *start = crr;
char *end = start;
while(*(end++) != 0);
end--;
swap(start, end-1);
puts(crr);
return 0;
}