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