#include <iostream>
#include <cstring>
using namespace std;
namespace my_space {
string s1;
void fun(string &s,int len);
}
void my_space::fun(string &s,int len){
string temp;
for(int i=0;i<len;i++){
temp[i]=s[len-i-1];
}
for(int j=0;j<len;j++){
s[j]=temp[j];
}
cout<<s<<endl;
}
using namespace my_space;
int main()
{
my_space::s1="hiyo,whats up,bro?";
cout << s1<< endl;
fun(s1,s1.size());
cout<<s1<<endl;
return 0;
}