#include <string>
#include <algorithm>
#include <iostream>
int main()
{
std::string s;
std::cin >> s;
if( equal(s.begin(), s.begin() + s.size()/2, s.rbegin()) )
std::cout << "is a palindrome.\n";
else
std::cout << "is NOT a palindrome.\n";
}
I2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGlvc3RyZWFtPgppbnQgbWFpbigpCnsKICAgIHN0ZDo6c3RyaW5nIHM7CiAgICBzdGQ6OmNpbiA+PiBzOwogICAgaWYoIGVxdWFsKHMuYmVnaW4oKSwgcy5iZWdpbigpICsgcy5zaXplKCkvMiwgcy5yYmVnaW4oKSkgKQogICAgICAgIHN0ZDo6Y291dCA8PCAiaXMgYSBwYWxpbmRyb21lLlxuIjsKICAgIGVsc2UKICAgICAgICBzdGQ6OmNvdXQgPDwgImlzIE5PVCBhIHBhbGluZHJvbWUuXG4iOwp9