// editor5
#include<iostream>
using namespace std;
int main(){
    string str;
    cin>>str;
    string rev =str;
    
    int n =str.ength();
    for(int i=0;i<n; i++){
        rev[i] = str[n-i-1];
    }
    
    if(str == rev){
        cout<<str<<"is palindrome";
    }
    else
    {    
        cout<<str<<"is  not palindrome";
    }
    return 0;
}