Principles for Ensuring Fair Punishment