# include <stdio.h>
int isPalindrome(char s[]){
int i,I;
for(i=0;s[i]!='\0';i++);
I=i/2;
for(int j=0;j<I;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;
}
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGlzUGFsaW5kcm9tZShjaGFyIHNbXSl7CgkKCWludCBpLEk7Cglmb3IoaT0wO3NbaV0hPSdcMCc7aSsrKTsKCUk9aS8yOwoJZm9yKGludCBqPTA7ajxJO2orKyl7CgkJaWYoc1tqXSE9c1tpLTEtal0pcmV0dXJuIDA7Cgl9CglyZXR1cm4gMTsKfQoKaW50IG1haW4oKXsKICAgIGNoYXIgc1sxMDBdOwogICAgc2NhbmYoIiVzIixzKTsKICAgIHByaW50ZigiJXMgLT4gJWRcbiIscyxpc1BhbGluZHJvbWUocykpOwogICAgcmV0dXJuIDA7Cn0K