class Solution: def distributeCandies(self, candyType: List[int]) -> int: n = len(candyType)/2 candyType1 = set(candyType) if len(candyType1) >= n : return int(n) else : return len(candyType1)