def fair_split(i, n, p):
    """
    Split n requests amongst p proxies
    Returns how many requests go to the i-th proxy
    """
    n1 = int(n)
    i1 = int(i)
    p1 = int(p)
    return int((n1 * i1) / p1) - int((n1 * (i1 - 1)) / p1)