char str[128], ch;
int len, i;
scanf("%s", str);
len = strlen(str);
for (i = 0; i < len / 2; ++i) {
ch = str[i];
str[i] = str[len - i];
str[len - i] = ch;
}
int len, i;
scanf("%s", str);
len = strlen(str);
for (i = 0; i < len / 2; ++i) {
ch = str[i];
str[i] = str[len - i];
str[len - i] = ch;
}