# Each house is a number on the number line
def AlgPizza(houses):
houses.sort()
parlor = []
while houses:
parlor.append(houses[0] + 5)
while houses and abs(parlor[-1] - houses[0]) <= 5:
houses.pop(0)
return parlor