def fun(x):
    if (x <= 0):
        return branches[0](x)
    elif (x == 1):
        return branches[1](x)
    else:
        return branches[2](x)
def fun(x):
    if (x <= 0):
        return branches[0](x)
    elif (x == 1):
        return branches[1](x)
    else:
        return branches[2](x)