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

u = [1]
d = [1]
c = [1]
for i in range(1, b+1):
    u.append(u[-1] * (n-i+1) % MOD)
    d.append(d[-1] * i % MOD)
    # c.append(u[-1] // d[-1] % MOD)
    c.append(u[-1] * pow(d[-1], MOD-2, MOD) % MOD)

print((pow(2, n, MOD) - c[a] - c[b] - 1) % 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 u = [1] u [1] 1 d = [1] d [1] 1 c = [1] c [1] 1 for i in range(1, b+1):
    u.append(u[-1] * (n-i+1) % MOD)
    d.append(d[-1] * i % MOD)
    # c.append(u[-1] // d[-1] % MOD)
    c.append(u[-1] * pow(d[-1], MOD-2, MOD) % MOD) i range(1, b+1) range 1 b+1 b 1 u.append(u[-1] * (n-i+1) % MOD) u.append u append u[-1] * (n-i+1) % MOD u[-1] * (n-i+1) u[-1] u -1 n-i+1 n-i n i 1 MOD d.append(d[-1] * i % MOD) d.append d append d[-1] * i % MOD d[-1] * i d[-1] d -1 i MOD c.append(u[-1] * pow(d[-1], MOD-2, MOD) % MOD) c.append c append u[-1] * pow(d[-1], MOD-2, MOD) % MOD u[-1] * pow(d[-1], MOD-2, MOD) u[-1] u -1 pow(d[-1], MOD-2, MOD) pow d[-1] d -1 MOD-2 MOD 2 MOD MOD print((pow(2, n, MOD) - c[a] - c[b] - 1) % MOD) print (pow(2, n, MOD) - c[a] - c[b] - 1) % MOD pow(2, n, MOD) - c[a] - c[b] - 1 pow(2, n, MOD) - c[a] - c[b] pow(2, n, MOD) - c[a] pow(2, n, MOD) pow 2 n MOD c[a] c a c[b] c b 1 MOD a, b = map(int, input().split()) map(int, input().split()) a n, a, b = map(int, input().split()) map(int, input().split()) n MOD = 10**9 + 7 10**9 + 7 MOD b = map(int, input().split()) map(int, input().split()) b d = [1] [1] d u = [1] [1] u c = [1] [1] c
n, a, b = map(int, input().split())
MOD = 10**9 + 7

u = [1]
d = [1]
c = [1]
for i in range(1, b+1):
    u.append(u[-1] * (n-i+1) % MOD)
    d.append(d[-1] * i % MOD)
    # c.append(u[-1] // d[-1] % MOD)
    c.append(u[-1] * pow(d[-1], MOD-2, MOD) % MOD)

print((pow(2, n, MOD) - c[a] - c[b] - 1) % MOD)