The arithmetic of displeasure