n, a, b = map(int, input().split())
mod = int(1e9) + 7
temp = pow(2, n, mod) - 1
fa, fb = 1, 1
tempa, tempb = 1, 1
for i in range(1, a+1):
    fa *= i
    fa %= mod

    tempa *= (n - i + 1)
    tempa %= mod
for i in range(1, b+1):
    fb *= i
    fb %= mod
    tempb *= (n - i + 1)
    tempb %= mod

a_t = tempa * pow(fa, mod-2, mod) % mod
b_t = tempb * pow(fb, mod-2, mod) % mod
ans = (temp - a_t - b_t) % 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 = int(1e9) + 7 mod int(1e9) + 7 int(1e9) int 1e9 7 temp = pow(2, n, mod) - 1 temp pow(2, n, mod) - 1 pow(2, n, mod) pow 2 n mod 1 fa, fb = 1, 1 fa 1 fb 1 tempa, tempb = 1, 1 tempa 1 tempb 1 for i in range(1, a+1):
    fa *= i
    fa %= mod

    tempa *= (n - i + 1)
    tempa %= mod i range(1, a+1) range 1 a+1 a 1 fa *= i fa i fa %= mod fa mod tempa *= (n - i + 1) tempa n - i + 1 n - i n i 1 tempa %= mod tempa mod for i in range(1, b+1):
    fb *= i
    fb %= mod
    tempb *= (n - i + 1)
    tempb %= mod i range(1, b+1) range 1 b+1 b 1 fb *= i fb i fb %= mod fb mod tempb *= (n - i + 1) tempb n - i + 1 n - i n i 1 tempb %= mod tempb mod a_t = tempa * pow(fa, mod-2, mod) % mod a_t tempa * pow(fa, mod-2, mod) % mod tempa * pow(fa, mod-2, mod) tempa pow(fa, mod-2, mod) pow fa mod-2 mod 2 mod mod b_t = tempb * pow(fb, mod-2, mod) % mod b_t tempb * pow(fb, mod-2, mod) % mod tempb * pow(fb, mod-2, mod) tempb pow(fb, mod-2, mod) pow fb mod-2 mod 2 mod mod ans = (temp - a_t - b_t) % mod ans (temp - a_t - b_t) % mod temp - a_t - b_t temp - a_t temp a_t b_t mod print(ans) print ans mod = int(1e9) + 7 int(1e9) + 7 mod fb = 1, 1 1 fb tempb = 1, 1 1 tempb tempb *= (n - i + 1) n - i + 1 tempb tempa, tempb = 1, 1 1 tempa tempa %= mod mod tempa b_t = tempb * pow(fb, mod-2, mod) % mod tempb * pow(fb, mod-2, mod) % mod b_t tempa *= (n - i + 1) n - i + 1 tempa tempb %= mod mod tempb n, a, b = map(int, input().split()) map(int, input().split()) n fa, fb = 1, 1 1 fa fb %= mod mod fb ans = (temp - a_t - b_t) % mod (temp - a_t - b_t) % mod ans a, b = map(int, input().split()) map(int, input().split()) a temp = pow(2, n, mod) - 1 pow(2, n, mod) - 1 temp fa *= i i fa b = map(int, input().split()) map(int, input().split()) b fa %= mod mod fa fb *= i i fb a_t = tempa * pow(fa, mod-2, mod) % mod tempa * pow(fa, mod-2, mod) % mod a_t
n, a, b = map(int, input().split())
mod = int(1e9) + 7
temp = pow(2, n, mod) - 1
fa, fb = 1, 1
tempa, tempb = 1, 1
for i in range(1, a+1):
    fa *= i
    fa %= mod

    tempa *= (n - i + 1)
    tempa %= mod
for i in range(1, b+1):
    fb *= i
    fb %= mod
    tempb *= (n - i + 1)
    tempb %= mod

a_t = tempa * pow(fa, mod-2, mod) % mod
b_t = tempb * pow(fb, mod-2, mod) % mod
ans = (temp - a_t - b_t) % mod
print(ans)