include <stdio.h> include <string.h> int main(void){char source[1000];scanf("%s", source);int len = strlen(source);char *p = source + len - 1;int i;for (i = 0; i < len; i++){printf("%c", *p--);}return 0;}