def inc(a):
    a[0] += 1
    return a
    
def add(a, b):
    return [a[0] + b[0]]
    
i = [5]
i = add(inc(i), inc(i))
print i