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