What is the meaning of [you have to take the rough with the smooth]

Everything has pleasant and unpleasant—or difficult and easy—aspects