# https://leetcode.com/problems/distribute-candies/


class Solution(object):
    def distributeCandies(self, candies):
        """
        :type candies: List[int]
        :rtype: int
        """
        return min(len(set(candies)), len(candies) // 2)

# https://leetcode.com/problems/distribute-candies/


class Solution(object):
    def distributeCandies(self, candies):
        """
        :type candies: List[int]
        :rtype: int
        """
        return min(len(set(candies)), len(candies) // 2)

# https://leetcode.com/problems/distribute-candies/ :type candies: List[int]         :rtype: int