Checking whether a number is odd or even