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