# include <stdio.h>

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

    while (s[i] != '\0') {
        i++;
    }
    i--; 
    while (j < i) {
        if (s[j] != s[i]) {
            return 0;
        }
        j++;
        i--;
    }

    return 1;
}

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