n, a, b = map(int, input().split())
MOD = 10**9+7

def comb(n, k, MOD):
    x = 1
    for i in range(k):
        x *= (n-i)
        x *= pow(i+1, MOD-2, MOD)
        x %= MOD
    return x

ans = pow(2, n, MOD) - 1 - comb(n, a, MOD) - comb(n, b, MOD)
ans += MOD
ans %= MOD
print(ans) n, a, b = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split a b MOD = 10**9+7 MOD 10**9+7 10**9 10 9 7 def comb(n, k, MOD):
    x = 1
    for i in range(k):
        x *= (n-i)
        x *= pow(i+1, MOD-2, MOD)
        x %= MOD
    return x comb x = 1 x 1 for i in range(k):
        x *= (n-i)
        x *= pow(i+1, MOD-2, MOD)
        x %= MOD
     i range(k) range k x *= (n-i) x n-i n i x *= pow(i+1, MOD-2, MOD) x pow(i+1, MOD-2, MOD) pow i+1 i 1 MOD-2 MOD 2 MOD x %= MOD x MOD return x x n n k k MOD MOD ans = pow(2, n, MOD) - 1 - comb(n, a, MOD) - comb(n, b, MOD) ans pow(2, n, MOD) - 1 - comb(n, a, MOD) - comb(n, b, MOD) pow(2, n, MOD) - 1 - comb(n, a, MOD) pow(2, n, MOD) - 1 pow(2, n, MOD) pow 2 n MOD 1 comb(n, a, MOD) comb n a MOD comb(n, b, MOD) comb n b MOD ans += MOD ans MOD ans %= MOD ans MOD print(ans) print ans b = map(int, input().split()) map(int, input().split()) b ans = pow(2, n, MOD) - 1 - comb(n, a, MOD) - comb(n, b, MOD) pow(2, n, MOD) - 1 - comb(n, a, MOD) - comb(n, b, MOD) ans ans += MOD MOD ans MOD = 10**9+7 10**9+7 MOD a, b = map(int, input().split()) map(int, input().split()) a ans %= MOD MOD ans n, a, b = map(int, input().split()) map(int, input().split()) n def comb(n, k, MOD):
    x = 1
    for i in range(k):
        x *= (n-i)
        x *= pow(i+1, MOD-2, MOD)
        x %= MOD
    return x def comb(n, k, MOD):
    x = 1
    for i in range(k):
        x *= (n-i)
        x *= pow(i+1, MOD-2, MOD)
        x %= MOD
    return x comb
n, a, b = map(int, input().split())
MOD = 10**9+7

def comb(n, k, MOD):
    x = 1
    for i in range(k):
        x *= (n-i)
        x *= pow(i+1, MOD-2, MOD)
        x %= MOD
    return x

ans = pow(2, n, MOD) - 1 - comb(n, a, MOD) - comb(n, b, MOD)
ans += MOD
ans %= MOD
print(ans)