# include <stdio.h>

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

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