#include <stdio.h> int main() { char str[5] = ""; while (scanf("%s", str) == 1) { for (int i = 3; i >= 0; i -- ) { printf("%c", str[i]); } printf("\n"); } }