# include <stdio.h>
int isPalindrome(char s[]){
int i,j;
for(i=0; s[i]!='\0'; i++)
;
for(j=0; j<i/2; j++){
if(s[j]!=s[i-1-j]) return 0;
}
return 1;
}
int main(){
char s[100];
printf("%s -> %d\n",s
,isPalindrome
(s
)); return 0;
}
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGlzUGFsaW5kcm9tZShjaGFyIHNbXSl7CglpbnQgaSxqOwoJZm9yKGk9MDsgc1tpXSE9J1wwJzsgaSsrKQoJCTsKCglmb3Ioaj0wOyBqPGkvMjsgaisrKXsKCQlpZihzW2pdIT1zW2ktMS1qXSkgcmV0dXJuIDA7Cgl9CglyZXR1cm4gMTsKfQoKaW50IG1haW4oKXsKICAgIGNoYXIgc1sxMDBdOwogICAgc2NhbmYoIiVzIixzKTsKICAgIHByaW50ZigiJXMgLT4gJWRcbiIscyxpc1BhbGluZHJvbWUocykpOwogICAgcmV0dXJuIDA7Cn0K