Stable Partition Problem