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