# include <stdio.h>

int isPalindrome(char s[]){
	int count = 0;
	int i = 0;
	while(s[i] != '\0'){
		count++;
		i++;
	}
	
	for(int i = 0, j = count - 1; i < j; i++, j--){
		if(s[i] != s[j]) return 0;
	}
	return 1;
	//関数の中だけを書き換えてください
	//回文になっているとき１を返す
	//回文になっていないとき０を返す
}

//メイン関数は書き換えなくてよいです
int main(){
    char s[100];
    scanf("%s",s);
    printf("%s -> %d\n",s,isPalindrome(s));
    return 0;
}
