When people praise you, don't let it go to your head. When they criticize you, don't let it go to your heart.
or simply: