to check whether even or odd