def inv(trig):
    if isinstance(f, (sin, csc)):
        F = (asin if isinstance(f, sin) else acsc)
        return ((lambda a: ((n * pi) + (((- 1) ** n) * F(a)))),)
    if isinstance(f, (cos, sec)):
        F = (acos if isinstance(f, cos) else asec)
        return ((lambda a: (((2 * n) * pi) + F(a))), (lambda a: (((2 * n) * pi) - F(a))))
    if isinstance(f, (tan, cot)):
        return ((lambda a: ((n * pi) + f.inverse()(a))),)
def inv(trig):
    if isinstance(f, (sin, csc)):
        F = (asin if isinstance(f, sin) else acsc)
        return ((lambda a: ((n * pi) + (((- 1) ** n) * F(a)))),)
    if isinstance(f, (cos, sec)):
        F = (acos if isinstance(f, cos) else asec)
        return ((lambda a: (((2 * n) * pi) + F(a))), (lambda a: (((2 * n) * pi) - F(a))))
    if isinstance(f, (tan, cot)):
        return ((lambda a: ((n * pi) + f.inverse()(a))),)