//不换行的输入用getchar,换行的输入用scanf
#include<stdio.h>
#include<string.h>#define SIZE 100000
int main()
{
char ch;
char a[SIZE];
int i = 0,j = 0;
while((ch = getchar()) != '\n'){ //把数字存在字符串里
a[i] = ch;
i++;
}
//倒着遍历去输出
for(j = i - 1;j>=0;j--){printf("%c",a[j]);
}
return 0;
}