#include <stdio.h>

int main()
{
    int num, temp, digits[10], count = 0;
    int isPalindrome = 1;

    printf("Enter an integer: ");
    scanf("%d", &num);

    temp = num;
    while (temp != 0) {
        digits[count] = temp % 10;
        temp = temp / 10;
        count++;
    }

    for (int i = 0; i < count / 2; i++) {
        if (digits[i] != digits[count - i - 1]) {
            isPalindrome = 0;
            break;
        }
    }

    if (isPalindrome)
        printf("%d is a palindrome number\n", num);
    else
        printf("%d is not a palindrome number\n", num);

    return 0;
}