# include <stdio.h>

int isPalindrome(char s[]){
int a,b;
  a=0; b=0;

  while(s[b]!='\0'){
        b++;
    }  b--;
 
    while (a < b) {
        if (s[a]!=s[b]){
            return 0; 
        }
        a++;
        b--;
    }
 
    return 1; 
}

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