Easy Python Solution
Code
# Code
```python3 []
class Solution:
    def maximizeGreatness(self, nums: List[int]) -> int:
        nums.sort()
        first = 0
        for second in range(len(nums)):
            if nums[second] > nums[first]:
                first += 1
        return first
```
['Python3']