Quotations:

“Not every pleasure is worth choosing. We may instead avoid certain pleasures when, by doing so, we avoid greater pains. We may also choose to accept pain if, by doing so, it results in greater pleasure… Only upon considering all consequences should we decide.” — Epicurus

From the Letter to Menoceus, this quotation is related to another one of my favorites from Epicurus:

“Frugality too has a limit, and the man who disregards it is in like case with him who errs through excess. “

Epicurus

Both quotations underscore the fact that Epics do not avoid pain for the sake of avoiding pain.