# include <stdio.h>

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

    return 1; 
}
}

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