#include <iostream>
#include <cstring>
using namespace std;

bool czy_palindrom(char tab[])
{
	int i=0, j=strlen(tab)-1;
	
	while(i<j)
	{
		if (tab[i]!=tab[j])
			return false;
		i++;
		j--;
	
	}
	
	return true;
}

int main() {
	
	char tab[100];
	cin >> tab;
	
	if (czy_palindrom(tab))
		cout << "Wyraz; " << tab << " jest palindromem" << endl;
	else
		cout << "Wyraz; " << tab << " nie jest palindromem" << endl;
	// your code goes here
	return 0;
}