Rhys wrote down four whole numbers.

The mode of the four numbers is 7
.
The median of the four numbers is 6
.
The range of the four numbers is 5
.

What are the four numbers that Rhys wrote down?