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