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