//#include <stdio.h>
//
//int top=0;
//char input[10000] = {0};
//
//int scan()
//{
// char n;
//
// scanf("%c",&n);
// input[top]=n;
//
// top++;
// return 0;
//}
//int main()
//{
// int y,j,i;
// int s = 0;
// char sl = 0;
//
//
//
// for(i=0; i<11; i++)
// {
// scan();
// if(input[i] == '+' || input[i] == '-' || input[i] == '*')
// {
// if(input[i] == '+')
// {
// s=input[top-3]+input[top-2];
// }
// else if(input[i] == '-')
// {
// s=input[top-3]+input[top-2];
// }
// else
// {
// s=input[top-3]*input[top-2];
// }
// top-=3;
// input[top]=s;
// }
// }
//
// printf("%d\n%c",top,input[0]);
// return 0;
//}
#include <stdio.h>
int top = 0;
char stl[10000] = {0};
char exa[10000] = {0};
int main()
{
gets(stl);
for(int i=0;i<strlen(stl);i++)
{
exa[top] = stl[top];
printf("%c",exa[top]);
}
return 0;
}
/*
gets() ==> 예를 들어, gets(stl)을 하면, 문자, 숫자 등등 띄어쓰기 없이 입력된다.
문자형에 숫자를 넣으면 문자형 숫자가 된다.
그런데 출력에서 %c 말고 %d 로 한다면 기존 입력한 숫자에 48이 더해진다.
그렇기 때문에, 만약 문자형 숫자를 %d로 출력하고 싶다면, printf("%d",exa-48);
이렇게 쓰면 된다.
*/



