On the Chern numbers of a smooth threefold