Separate a list of integers