while True:
try:
n=input()
except EOFError:
break
print(n)
nn=[]
for i in n:
if i.isalnum():
nn.append(i.lower())
flag=True
for i in range(len(nn)//2):
if nn[i] != nn[len(nn)-i-1]:
flag=False
break
if flag:
print("-- is a palindrome")
else:
print("-- is not a palindrome")