#include <stdio.h>

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

int main(void) {
	// your code goes here
	char s[100];
	scanf("%d",&s);
	printf("%s -> %d\n",s,isPalindrome(s));
	return 0;
}

