#include <iostream>
#include <stdio.h>
using namespace std;
#define LEN 10
int main()
{
char str[LEN] = {0};
char* p = NULL;
char* tmp = NULL;
char tmp1[LEN] = {0};
scanf("%s", str);
p = str;
while(*p)
{
tmp = p;
p++;
tmp1[idx] = *tmp;
idx--;
}
printf("%s", tmp1 + idx + 1);
}
#include <stdio.h>
using namespace std;
#define LEN 10
int main()
{
char str[LEN] = {0};
char* p = NULL;
char* tmp = NULL;
char tmp1[LEN] = {0};
int idx = LEN - 2;//we need a '0' at the end of the string
scanf("%s", str);
p = str;
while(*p)
{
tmp = p;
p++;
tmp1[idx] = *tmp;
idx--;
}
printf("%s", tmp1 + idx + 1);
}