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

int main() {
	string tekst = "owocowot";
	string odwrot;
	
	for(int i=tekst.size()-1;i>=0;i--)
		odwrot = odwrot + tekst[i];
	
	if (tekst==odwrot) cout << "Palindrom";
	else cout << "Nie palindrom";
	return 0;
}