# include <stdio.h>

int isPalindrome(char s[]){
int t=0;
    while(s[t]!='\0'){
        t++;
    }
    int i;
    for(i=0;i<t/2;i++){
        if(s[i]!=s[t-1-i]){
            return 0;
        }
    }
    return 1;
}

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