Maximum Number of Groups Entering a Competition