# include <stdio.h>

int isPalindrome(char s[]){
	int i,j;
    char temp[100];
    for(i=0;s[i]!='\0';i++);

    for(j=0;j<i;j++){
       temp[j]=s[i-j-1];
    }
    
    for(j=0;j<i;j++){
       if(temp[j]!=s[j]){
          return 0;
       }
    }

    return 1;
}

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