#include<iostream>
#include<algorithm>
using namespace std;

int main() {
    string rev = str;
    reverse(rev.begin(), rev.end());
    
    if (str == rev)
    cout << str << "is palindrome";
    else
    cout << str << "is not palindrome";
    
    return 0;
}