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

MOD = 10 ** 9 + 7

ans = pow(2, n, MOD) - 1
na = 1
for i in range(a):
    na *=(n - i)
    na %= MOD
    na *= pow(i + 1, MOD - 2, MOD)
    na %= MOD
ans -= na
nb = 1
for i in range(b):
    nb *= (n - i)
    nb %= MOD
    nb *= pow(i + 1, MOD - 2, MOD)
    nb %= MOD
ans -= nb
print(ans % MOD) 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 ans = pow(2, n, MOD) - 1 ans pow(2, n, MOD) - 1 pow(2, n, MOD) pow 2 n MOD 1 na = 1 na 1 for i in range(a):
    na *=(n - i)
    na %= MOD
    na *= pow(i + 1, MOD - 2, MOD)
    na %= MOD i range(a) range a na *=(n - i) na n - i n i na %= MOD na MOD na *= pow(i + 1, MOD - 2, MOD) na pow(i + 1, MOD - 2, MOD) pow i + 1 i 1 MOD - 2 MOD 2 MOD na %= MOD na MOD ans -= na ans na nb = 1 nb 1 for i in range(b):
    nb *= (n - i)
    nb %= MOD
    nb *= pow(i + 1, MOD - 2, MOD)
    nb %= MOD i range(b) range b nb *= (n - i) nb n - i n i nb %= MOD nb MOD nb *= pow(i + 1, MOD - 2, MOD) nb pow(i + 1, MOD - 2, MOD) pow i + 1 i 1 MOD - 2 MOD 2 MOD nb %= MOD nb MOD ans -= nb ans nb print(ans % MOD) print ans % MOD ans MOD na *= pow(i + 1, MOD - 2, MOD) pow(i + 1, MOD - 2, MOD) na nb *= pow(i + 1, MOD - 2, MOD) pow(i + 1, MOD - 2, MOD) nb ans = pow(2, n, MOD) - 1 pow(2, n, MOD) - 1 ans nb = 1 1 nb nb *= (n - i) n - i nb nb %= MOD MOD nb n, a, b = map(int, input().split()) map(int, input().split()) n a, b = map(int, input().split()) map(int, input().split()) a ans -= nb nb ans b = map(int, input().split()) map(int, input().split()) b na %= MOD MOD na na %= MOD MOD na nb %= MOD MOD nb na = 1 1 na ans -= na na ans na *=(n - i) n - i na MOD = 10 ** 9 + 7 10 ** 9 + 7 MOD
n, a, b = map(int, input().split())

MOD = 10 ** 9 + 7

ans = pow(2, n, MOD) - 1
na = 1
for i in range(a):
    na *=(n - i)
    na %= MOD
    na *= pow(i + 1, MOD - 2, MOD)
    na %= MOD
ans -= na
nb = 1
for i in range(b):
    nb *= (n - i)
    nb %= MOD
    nb *= pow(i + 1, MOD - 2, MOD)
    nb %= MOD
ans -= nb
print(ans % MOD)