Last year was not a good year to be a letter carrier in Denver.

According to the U.S. Postal Service, the Mile High City is the seventh worst in the country when it comes to dog attacks on letter carriers, in between Chicago and Detroit.

There were 47 attacks on mail men and women in 2016 – a 24 percent increase over the year before, and double what it was five years ago.

For the record, Los Angeles was the worst city for letter carriers, with 80 dog attacks.

Here’s what you can do to make sure Denver doesn’t slip further in the rankings:

1. If a letter carrier delivers mail or packages to your front door, place your dog in a separate room and close that door before opening the front door. Dogs have been known to burst through screen doors or plate-glass windows to get at strangers.

2. Dog owners should remind their children about the need to keep the family dog secured. Parents should remind their children not to take mail directly from letter carriers in the presence of the family pet as the dog may view the letter carrier handing mail to a child as a threatening gesture.