How to Avoid Jealous and Envious Behavior