# include <stdio.h>
int isPalindrome(char s[]){
    int i = 0,j;
for(j=0; s[j+1]!='\0' ;j++);
    while(i<=j){
        if(s[i++]!=s[j--])    return 0 ;
    }
return 1;
}

int main(){
    char s[100];
    scanf("%s",s);
    printf("%s -> %d\n",s,isPalindrome(s));
    return 0;
}
