def cal_maxf(ps, rs):
    assert (len(ps) == 256)
    assert (len(rs) == 256)
    maxf = []
    for (p, r) in zip(ps, rs):
        if ((p == 0) or (r == 0)):
            maxf.append(0)
        else:
            maxf.append((((1.3 * p) * r) / ((0.3 * p) + r)))
    return max(maxf)
def cal_maxf(ps, rs):
    assert (len(ps) == 256)
    assert (len(rs) == 256)
    maxf = []
    for (p, r) in zip(ps, rs):
        if ((p == 0) or (r == 0)):
            maxf.append(0)
        else:
            maxf.append((((1.3 * p) * r) / ((0.3 * p) + r)))
    return max(maxf)