# include <stdio.h>
int isPalindrome(char s[]){
int sn,p,i;
for(sn=0;s[sn]!='\0';sn++){}
p=sn/2;
int sn2=sn-1;
for(i=0;i<p;i++,sn2--){
if(s[i]!=s[sn2]) return 0;
}
return 1;
}
int main(){
char s[100];
printf("%s -> %d\n",s
,isPalindrome
(s
)); return 0;
}
IyBpbmNsdWRlIDxzdGRpby5oPgoKaW50IGlzUGFsaW5kcm9tZShjaGFyIHNbXSl7CglpbnQgc24scCxpOwoJZm9yKHNuPTA7c1tzbl0hPSdcMCc7c24rKyl7fQoJcD1zbi8yOwoJaW50IHNuMj1zbi0xOwoJCWZvcihpPTA7aTxwO2krKyxzbjItLSl7CgkJCWlmKHNbaV0hPXNbc24yXSkgcmV0dXJuIDA7CgkJfQoJcmV0dXJuIDE7Cn0KCmludCBtYWluKCl7CiAgICBjaGFyIHNbMTAwXTsKICAgIHNjYW5mKCIlcyIscyk7CiAgICBwcmludGYoIiVzIC0+ICVkXG4iLHMsaXNQYWxpbmRyb21lKHMpKTsKICAgIHJldHVybiAwOwp9Cg==