Write the next sentence.

The man took medicine after eating the spicy food, because the
medicine prevented him from getting heartburn.