def middle_drop(p):
    eps = 0.75
    if ((1 - p) < eps):
        return (eps * 0.1)
    return (1 - p)
def middle_drop(p):
    eps = 0.75
    if ((1 - p) < eps):
        return (eps * 0.1)
    return (1 - p)