# include <stdio.h>

int isPalindrome(char s[]){
	int i, length = 0;

    while(s[length] != '\0')
    	length++;

    for (i = 0; i < length / 2; i++) {
        if (s[i] != s[length - 1 - i]) {
            return 0;
        }
    }

    return 1;
}

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