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