#include <stdio.h>

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

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