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