#include <iostream>
#include <cstring>
using namespace std;
struct Word {
char text[50];
};
int main() {
Word w;
cin >> w.text;
int len = strlen(w.text);
for (int i = len-1; i >=0; i--) {
cout << w.text[i];
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: