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: [52.177, 65.937, 23.342, 78, -27, 22.177, -31.831, 14.651]

[78, -27]