Definition: In this task you will be given a list of numbers. You should remove any number that is not an integer (whole number). If every number is not an whole number then an empty list ("[]") should be returned. Otherwise, answer with the list of whole numbers separated by comma inside brackets.
Input: [72, 17, 25.986, 29.045, 51.093, -40, -26.644, -39.894, 28.477, -4, 23.329]

[72, 17, -40, -4]