Optimum survival strategy in a primitive community