#include<bits/stdc++.h>
using namespace std;
int main(){
    string str;
    cin>>str;
    string rev=" ";
    for(int i=str.length()-1;i>=0;--i){
        rev+=str;
    }
    if(rev=str){
        cout<<"Pallinderome";
    }
    else{
        cout<<"Not Pallinderome";
    }
}