#include
using namespace std;
int main(){
char str[50],*p,*q,x;
int n=0,t,i,j;
cout<<"Input a string:";
cin>>str;
p=str;
while(*p!='\0'){
p++;
n++;
}
t=n/2+1;
for(i=t,j=n;i<j;i++,j--){
x=p[i];
p[i]=p[j];
p[j]=x;
}
cout<<"The new string:"<<str;
return 0;
}