#include<iostream>
#include<string>
using namespace std;
int main(){
    string str;
    cin str;
    int left =0;
    int right =str.length()-1;
    bool ispaln=true;
    while (left<right){
        if(str[left]!=str[right]){
            ispaln=false;
            break;
        }
        left++;
        right--;
    }
    if(ispaln){
        cout<<str<<"is palindrome";
        
    }
    else{
        cout<<str<<"is not palindrome"
    }
    return 0;
}