#include <iostream>
#include <string>
using namespace std;
void re(string& str) {
int n = str.length();
for (int i = 0; i < n / 2; i++) {
swap(str[i], str[n - i - 1]);
}
}
int main() {
string s;
cin >> s;
re(s);
cout << s << endl;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: