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