#include <iostream>
#include <cstring>
using namespace std;
void palindrome(string word){
string reversed=word;
for (int i = 0, j = word.length() - 1; i < word.length(), j >= 0; i++, j--) {
reversed[j] = word[i];
}
cout<< reversed<<endl;
if(word==reversed)
cout<<"Palindrome";
else cout<<"not palindrome";
}
int main(){
string text;
cout<<"Enter text: ";
getline(cin,text);
reverse(text);
}