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

mod = 1000000007

def inv(y, mod):

    return pow(y, mod - 2, mod)

 

def comb(n, a, mod):

    x = 1

    y = 1

    for i in range(a):

        x = x * (n - i) % mod

        y = y * (i + 1) % mod

    return (x * inv(y, mod)) % mod

    

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

mod = 1000000007

def inv(k):

    return pow(k, mod - 2, mod)



def comb(n, k):

    bunshi = 1

    bunbo = 1

    for i in range(k):

        bunshi = bunshi * (n - i) % mod

        bunbo = bunbo * (i + 1) % mod

    return bunshi * inv(bunbo) % mod





all_num = pow(2, n, mod)



ans = all_num - 1 - comb(n, a) - comb(n, b)

print((ans % mod))
n, a, b = list(map(int, input().split()))
mod = 1000000007


def inv(y, mod):
    return pow(y, mod - 2, mod)


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


print(((pow(2, n, mod) - 1 - comb(n, a, mod) - comb(n, b, mod)) % mod))

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


def inv(k):
    return pow(k, mod - 2, mod)


def comb(n, k):
    bunshi = 1
    bunbo = 1
    for i in range(k):
        bunshi = bunshi * (n - i) % mod
        bunbo = bunbo * (i + 1) % mod
    return bunshi * inv(bunbo) % mod


all_num = pow(2, n, mod)
ans = all_num - 1 - comb(n, a) - comb(n, b)
print((ans % mod))

-def inv(y, mod): -    return pow(y, mod - 2, mod) +def inv(k): +    return pow(k, mod - 2, mod) -def comb(n, a, mod): -    x = 1 -    y = 1 -    for i in range(a): -        x = x * (n - i) % mod -        y = y * (i + 1) % mod -    return (x * inv(y, mod)) % mod +def comb(n, k): +    bunshi = 1 +    bunbo = 1 +    for i in range(k): +        bunshi = bunshi * (n - i) % mod +        bunbo = bunbo * (i + 1) % mod +    return bunshi * inv(bunbo) % mod -print(((pow(2, n, mod) - 1 - comb(n, a, mod) - comb(n, b, mod)) % mod)) +all_num = pow(2, n, mod) +ans = all_num - 1 - comb(n, a) - comb(n, b) +print((ans % mod))