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