#include <stdio.h>

int isPalindrome(char s[]){
    int left = 0;
    int right = 0;

    while (s[right] != '\0') {
        right++;
    }
    right--;

    while (left < right) {
        if (s[left] != s[right]) {
            return 0;
        }
        left++;
        right--;
    }
    return 1;
}

int main(){
    char s[100];
    scanf("%s", s);
    printf("%s -> %d\n", s, isPalindrome(s));
    return 0;
}
