def f(n):
    return n + 1

def g(m):
    return f(m * 2)

def h(r):
    return g(r + 1)

print(h(g(f(1) * 2) + 1))
