#include <stdio.h>
#include <string.h>

int main(void) {
	char s[100];
	int i=0,j=0;
	scanf("%s",s);
	j=strlen(s)-1;
	while(i<=j){
		if(s[i]!=s[j]){
			printf("not palindrome");
			return 0;
		}
		i++;
		j--;
	}
	printf("palindorome");
	
	return 0;
}
