忆苦思甜

yì kǔ sī tián

to view one's past as miserable and one's present as happy (idiom)

to recollect

bitter

to think

tián

sweet