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