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: [-5.818, 3.533, -12.593, -45, 36.224, 42.729, -1.242, 0.204, -18.612, -18]

[-45, -18]