# include <stdio.h>
int isPalindrome(char s[]){
int a,b=0;
for(a=0;s[a]!='\0';a++)
a--;
while(a>b){
if(s[a]!=s[b])
return 0;
a--;
b++;
}
return 1;
}
int main(){
char s[100];
printf("%s -> %d\n",s
,isPalindrome
(s
)); return 0;
}
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGlzUGFsaW5kcm9tZShjaGFyIHNbXSl7CiAgaW50IGEsYj0wOyAgCiAgZm9yKGE9MDtzW2FdIT0nXDAnO2ErKykKICAgIHByaW50ZigiIik7CiAgYS0tOwogIHdoaWxlKGE+Yil7CiAgICBpZihzW2FdIT1zW2JdKQogICAgICByZXR1cm4gMDsKICAgIGEtLTsKICAgIGIrKzsgIAogIH0JCiAgcmV0dXJuIDE7Cn0KCgppbnQgbWFpbigpewogICAgY2hhciBzWzEwMF07CiAgICBzY2FuZigiJXMiLHMpOwogICAgcHJpbnRmKCIlcyAtPiAlZFxuIixzLGlzUGFsaW5kcm9tZShzKSk7CiAgICByZXR1cm4gMDsKfQo=