Find the missing numbers in the following sets of numbers.

__,__,__,40,__ The mode is 31. The median is 35. The mean is 39.

The missing numbers in numerical order starting from smallest are __,__,__, and __.