#include <stdio.h>
#include <stdlib.h>
int main() {
char *s;
s = malloc(100);
int i = 0;
while ((s[i++] = getchar()) != EOF) { // 注意 while 处理多个 case
// 64 位输出请用 printf("%lld") to
if(i >= 100)
s = realloc(s, i + 1);
}
for(int j = i - 3; j >= 0; j--)
{
printf("%c", s[j]);
}
return 0;
}



京公网安备 11010502036488号