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