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