Parity function

Returns the bitwise PARITY of an integer (1 if its binary representation contains odd number of ones and 0 otherwise).

function Parity (a : Int) : Int

Input

a
Int

Output

Int