include iostream include string using namespace std int main string ci

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#include <iostream>
#include <string>
using namespace std;
int main() {
string a;
cin >> a;
for(int i=0; i<a.length()/2; i++)
swap(a[i],a[a.length()-i-1]);
cout << a;
}