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