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