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