#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
int palindrome(const char *s){
int longueur=strlen(s);
int i=0;
int result = 1;
while(i<longueur/2 && result==1){
if(s[i]!= s[longueur-1-i]){
result=0;
break;
}
i++;
}
if (result==0){
return result;
} else if (result==1){
return result;
}
}
int string_size(const char *s) {
return sizeof (s) / sizeof(char);
}
int palindrome2(char *s){
/*if(fgets(s, string_size(s), stdin)==NULL){
printf("Erreur \n");
return NULL;
}*/
char * s2 = malloc(sizeof(s));
//suppression espaces
for(int i=0; i<string_size(s); i++){
if(tolower(s[i])!=' '){
s2[i]=tolower(s[i]);
}
}
int *pal = palindrome(s2);
if(pal==1){
printf("c'est un palindrome \n");
return 1;
}else {
printf("ce n'est pas un palindrome \n");
return 0;
}
}
int main(){
//char str[20];
//scanf("%s", str);
//palindrome(str);
//palindrome_fast_track(str);
char str2[20];
scanf("%s", str2);
palindrome2(str2);
}