Pearl writes down seven consecutive integers, and adds them up. The sum of the integers is equal to $\frac{28}{9}$ times the largest of the seven integers. What is the smallest integer that Pearl wrote down?