#include<stdio.h>
#include<string.h>
int main()
{
char str[100],t;
int b,i,x,y;
int c;
while(scanf("%s",str)!=EOF)
{
b=0;
c=strlen(str);
for(i=0;i<c;i++)
{
if(str[i]>='A'&&str[i]<='Z'||str[i]>='a'&&str[i]<='z')
b=1;
else
{
b=0;
break;
}
if(b==0)
printf("Not the password!\n");
else if(b==1)
{
x=0;
y=strlen(str)-1;
while(x<y)
{
t=str[x];
str[x]=str[y];
str[y]=t;
x++;
y--;
}
printf("%s\n",str);
}
}
}
return 0;
}
#include<string.h>
int main()
{
char str[100],t;
int b,i,x,y;
int c;
while(scanf("%s",str)!=EOF)
{
b=0;
c=strlen(str);
for(i=0;i<c;i++)
{
if(str[i]>='A'&&str[i]<='Z'||str[i]>='a'&&str[i]<='z')
b=1;
else
{
b=0;
break;
}
if(b==0)
printf("Not the password!\n");
else if(b==1)
{
x=0;
y=strlen(str)-1;
while(x<y)
{
t=str[x];
str[x]=str[y];
str[y]=t;
x++;
y--;
}
printf("%s\n",str);
}
}
}
return 0;
}