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