# -*- coding: utf-8 -*-
"""
Created on Tue Jun  5 14:49:13 2018

@author: Asus
"""

def distributeCandies(candies):
    """
    :type candies: List[int]
    :rtype: int
    """
    candyType = set(candies)
    return min(len(candyType), len(candies)//2)
4723cb4148d7ee7f02829c4d81b591a33a06d806
<mask token>

<mask token>


def distributeCandies(candies):
    """
    :type candies: List[int]
    :rtype: int
    """
    candyType = set(candies)
    return min(len(candyType), len(candies) // 2)

# -*- coding: utf-8 -*-
"""
Created on Tue Jun  5 14:49:13 2018

@author: Asus
"""

def distributeCandies(candies):
    """
    :type candies: List[int]
    :rtype: int
    """
    candyType = set(candies)
    return min(len(candyType), len(candies)//2)