mod = 10 ** 9 + 7 

def cmb(n, r, mod):

    r = min(r, n -r)

    if r == 0: return 1

    over, under = 1, 1

    for i in range(1, r+1):

        over = over * (n-i+1) % mod

        under = under * i % mod

    inv = pow(under, mod-2, mod)

    return over * inv % mod



n, a, b = list(map(int, input().split()))





ans = pow(2, n, mod) - 1 - cmb(n, a, mod) - cmb(n, b, mod)

print((ans % mod))
def choose(n, a):

    x = 1; y = 1

    for i in range(a):

        x = x * (n-i) % mod

        y = y * (i+1) % mod

    return x * pow(y, mod-2, mod) % mod



mod = 10 ** 9 + 7



n, a, b = list(map(int, input().split()))





ans = pow(2, n, mod)

ans -= 1

ans -= choose(n, a)

ans -= choose(n, b)



print((ans % mod))

mod = 10**9 + 7


def cmb(n, r, mod):
    r = min(r, n - r)
    if r == 0:
        return 1
    over, under = 1, 1
    for i in range(1, r + 1):
        over = over * (n - i + 1) % mod
        under = under * i % mod
    inv = pow(under, mod - 2, mod)
    return over * inv % mod


n, a, b = list(map(int, input().split()))
ans = pow(2, n, mod) - 1 - cmb(n, a, mod) - cmb(n, b, mod)
print((ans % mod))

def choose(n, a):
    x = 1
    y = 1
    for i in range(a):
        x = x * (n - i) % mod
        y = y * (i + 1) % mod
    return x * pow(y, mod - 2, mod) % mod


mod = 10**9 + 7
n, a, b = list(map(int, input().split()))
ans = pow(2, n, mod)
ans -= 1
ans -= choose(n, a)
ans -= choose(n, b)
print((ans % mod))

-mod = 10**9 + 7 +def choose(n, a): +    x = 1 +    y = 1 +    for i in range(a): +        x = x * (n - i) % mod +        y = y * (i + 1) % mod +    return x * pow(y, mod - 2, mod) % mod -def cmb(n, r, mod): -    r = min(r, n - r) -    if r == 0: -        return 1 -    over, under = 1, 1 -    for i in range(1, r + 1): -        over = over * (n - i + 1) % mod -        under = under * i % mod -    inv = pow(under, mod - 2, mod) -    return over * inv % mod - - +mod = 10**9 + 7 -ans = pow(2, n, mod) - 1 - cmb(n, a, mod) - cmb(n, b, mod) +ans = pow(2, n, mod) +ans -= 1 +ans -= choose(n, a) +ans -= choose(n, b)