The electrostatic force between two charges in a vacuum is given by Coulomb's Law:
\[
F = \frac{1}{4\pi\epsilon_0} \cdot \frac{q_1 q_2}{r^2}.
\]
In a medium with a dielectric constant \( K \), the force becomes:
\[
F' = \frac{1}{4\pi K \epsilon_0} \cdot \frac{q_1 q_2}{r'^2}.
\]
Here, \( K = 5 \) and \( r' = \frac{r}{5} \). Substituting these values:
\[
F' = \frac{1}{4\pi (5\epsilon_0)} \cdot \frac{q_1 q_2}{\left(\frac{r}{5}\right)^2}.
\]
Simplify:
\[
F' = \frac{25}{5} \cdot \frac{1}{4\pi\epsilon_0} \cdot \frac{q_1 q_2}{r^2}.
\]
Thus:
\[
F' = 5F.
\]
Conclusion: The force between the charges in the medium is \( 5F \).