n, a, b = map(int, input().split())
mod = 10**9+7
ans = pow(2, n, mod) - 1

up = 1
bo = 1
for i in range(b):
    up = up*(n-i)%mod
    bo = bo*(i+1)%mod
    if i == a-1:
        acombs = up*pow(bo, mod-2, mod)%mod

bcombs = up*pow(bo, mod-2, mod)%mod

print((ans - acombs - bcombs)%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 up = 1 up 1 bo = 1 bo 1 for i in range(b):
    up = up*(n-i)%mod
    bo = bo*(i+1)%mod
    if i == a-1:
        acombs = up*pow(bo, mod-2, mod)%mod i range(b) range b up = up*(n-i)%mod up up*(n-i)%mod up*(n-i) up n-i n i mod bo = bo*(i+1)%mod bo bo*(i+1)%mod bo*(i+1) bo i+1 i 1 mod if i == a-1:
        acombs = up*pow(bo, mod-2, mod)%mod i == a-1 i a-1 a 1 acombs = up*pow(bo, mod-2, mod)%mod acombs up*pow(bo, mod-2, mod)%mod up*pow(bo, mod-2, mod) up pow(bo, mod-2, mod) pow bo mod-2 mod 2 mod mod bcombs = up*pow(bo, mod-2, mod)%mod bcombs up*pow(bo, mod-2, mod)%mod up*pow(bo, mod-2, mod) up pow(bo, mod-2, mod) pow bo mod-2 mod 2 mod mod print((ans - acombs - bcombs)%mod) print (ans - acombs - bcombs)%mod ans - acombs - bcombs ans - acombs ans acombs bcombs mod mod = 10**9+7 10**9+7 mod bo = 1 1 bo acombs = up*pow(bo, mod-2, mod)%mod up*pow(bo, mod-2, mod)%mod acombs a, b = map(int, input().split()) map(int, input().split()) a up = 1 1 up bcombs = up*pow(bo, mod-2, mod)%mod up*pow(bo, mod-2, mod)%mod bcombs bo = bo*(i+1)%mod bo*(i+1)%mod bo n, a, b = map(int, input().split()) map(int, input().split()) n ans = pow(2, n, mod) - 1 pow(2, n, mod) - 1 ans up = up*(n-i)%mod up*(n-i)%mod up b = map(int, input().split()) map(int, input().split()) b
n, a, b = map(int, input().split())
mod = 10**9+7
ans = pow(2, n, mod) - 1

up = 1
bo = 1
for i in range(b):
    up = up*(n-i)%mod
    bo = bo*(i+1)%mod
    if i == a-1:
        acombs = up*pow(bo, mod-2, mod)%mod

bcombs = up*pow(bo, mod-2, mod)%mod

print((ans - acombs - bcombs)%mod)
