#include <stdio.h>

typedef int bool;
#define true 1
#define false 0

bool is_palindrome(const char *message)
 {
     char *p, *p2;
     bool palindrome = true;

     p = message;
     p2 = message;

     
         while(*p)p++;

         while(*p2)
         {
             while(!isalpha(*p)) p--;
             while(*p2 !='\0' && !isalpha(*p2)) p2++;
             if (*p2 == '\0')
            	break;
	 
             if (toupper(*p) != toupper(*p2))
             {
              palindrome = false;
              break;
             }else
             {
                 p--;
                 p2++;
             }

         }
         
     return palindrome;
 }

int main(void) {
	printf("Is palindrome %d", is_palindrome("lived, devil."));
	return 0;
}
