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