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

ans = pow(2,n,10**9+7)

nm= 1
dn = 1

for i in range(a):
  nm = (nm * (n-i)) % (10**9+7)
  dn = (dn * (i+1)) % (10**9+7)

ans = (ans - nm*pow(dn,-1,10**9+7) - 1) % (10**9+7)

for i in range(a,b):
  nm = (nm * (n-i)) % (10**9+7)
  dn = (dn * (i+1)) % (10**9+7)

ans = (ans - nm*pow(dn,-1,10**9+7)) % (10**9+7)

print(ans) n,a,b = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split a b ans = pow(2,n,10**9+7) ans pow(2,n,10**9+7) pow 2 n 10**9+7 10**9 10 9 7 nm= 1 nm 1 dn = 1 dn 1 for i in range(a):
  nm = (nm * (n-i)) % (10**9+7)
  dn = (dn * (i+1)) % (10**9+7) i range(a) range a nm = (nm * (n-i)) % (10**9+7) nm (nm * (n-i)) % (10**9+7) nm * (n-i) nm n-i n i 10**9+7 10**9 10 9 7 dn = (dn * (i+1)) % (10**9+7) dn (dn * (i+1)) % (10**9+7) dn * (i+1) dn i+1 i 1 10**9+7 10**9 10 9 7 ans = (ans - nm*pow(dn,-1,10**9+7) - 1) % (10**9+7) ans (ans - nm*pow(dn,-1,10**9+7) - 1) % (10**9+7) ans - nm*pow(dn,-1,10**9+7) - 1 ans - nm*pow(dn,-1,10**9+7) ans nm*pow(dn,-1,10**9+7) nm pow(dn,-1,10**9+7) pow dn -1 10**9+7 10**9 10 9 7 1 10**9+7 10**9 10 9 7 for i in range(a,b):
  nm = (nm * (n-i)) % (10**9+7)
  dn = (dn * (i+1)) % (10**9+7) i range(a,b) range a b nm = (nm * (n-i)) % (10**9+7) nm (nm * (n-i)) % (10**9+7) nm * (n-i) nm n-i n i 10**9+7 10**9 10 9 7 dn = (dn * (i+1)) % (10**9+7) dn (dn * (i+1)) % (10**9+7) dn * (i+1) dn i+1 i 1 10**9+7 10**9 10 9 7 ans = (ans - nm*pow(dn,-1,10**9+7)) % (10**9+7) ans (ans - nm*pow(dn,-1,10**9+7)) % (10**9+7) ans - nm*pow(dn,-1,10**9+7) ans nm*pow(dn,-1,10**9+7) nm pow(dn,-1,10**9+7) pow dn -1 10**9+7 10**9 10 9 7 10**9+7 10**9 10 9 7 print(ans) print ans ans = pow(2,n,10**9+7) pow(2,n,10**9+7) ans a,b = map(int, input().split()) map(int, input().split()) a dn = 1 1 dn ans = (ans - nm*pow(dn,-1,10**9+7) - 1) % (10**9+7) (ans - nm*pow(dn,-1,10**9+7) - 1) % (10**9+7) ans dn = (dn * (i+1)) % (10**9+7) (dn * (i+1)) % (10**9+7) dn nm = (nm * (n-i)) % (10**9+7) (nm * (n-i)) % (10**9+7) nm nm = (nm * (n-i)) % (10**9+7) (nm * (n-i)) % (10**9+7) nm n,a,b = map(int, input().split()) map(int, input().split()) n dn = (dn * (i+1)) % (10**9+7) (dn * (i+1)) % (10**9+7) dn ans = (ans - nm*pow(dn,-1,10**9+7)) % (10**9+7) (ans - nm*pow(dn,-1,10**9+7)) % (10**9+7) ans b = map(int, input().split()) map(int, input().split()) b nm= 1 1 nm
n,a,b = map(int, input().split())

ans = pow(2,n,10**9+7)

nm= 1
dn = 1

for i in range(a):
  nm = (nm * (n-i)) % (10**9+7)
  dn = (dn * (i+1)) % (10**9+7)

ans = (ans - nm*pow(dn,-1,10**9+7) - 1) % (10**9+7)

for i in range(a,b):
  nm = (nm * (n-i)) % (10**9+7)
  dn = (dn * (i+1)) % (10**9+7)

ans = (ans - nm*pow(dn,-1,10**9+7)) % (10**9+7)

print(ans)