The function takes an integer input and returns a binary digit (0 or 1) based on the parity of the input.

