def f(v, i, j, k):
    if i == 0:
        return v
    elif i == 1:
        return v
    elif i == 2:
        h(g(j) + g(k))
        return v
    elif i == 3:
        for m in range(j):
            v += 2
        return v
    else:
        for n in range(i):
            v += 1
        return v