#include <stdio.h> #include<string.h> int main() { char arr[10000]; gets(arr); for(int i = strlen(arr)-1;i>=0;i--){ printf("%c",arr[i]); } }