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