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

A = 1  
for i in range(a):
  A = A*(N-i)*pow(i+1,MOD-2,MOD)%MOD

B = 1  
for i in range(b):
  B = B*(N-i)*pow(i+1,MOD-2,MOD)%MOD

alll = pow(2,N,MOD) -1
#nota = cmb(N,a,MOD)
#notb = cmb(N,b,MOD)
ans = alll - (A+B)
ans = ans%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 = pow(10,9) + 7 MOD pow(10,9) + 7 pow(10,9) pow 10 9 7 A = 1 A 1 for i in range(a):
  A = A*(N-i)*pow(i+1,MOD-2,MOD)%MOD i range(a) range a A = A*(N-i)*pow(i+1,MOD-2,MOD)%MOD A A*(N-i)*pow(i+1,MOD-2,MOD)%MOD A*(N-i)*pow(i+1,MOD-2,MOD) A*(N-i) A N-i N i pow(i+1,MOD-2,MOD) pow i+1 i 1 MOD-2 MOD 2 MOD MOD B = 1 B 1 for i in range(b):
  B = B*(N-i)*pow(i+1,MOD-2,MOD)%MOD i range(b) range b B = B*(N-i)*pow(i+1,MOD-2,MOD)%MOD B B*(N-i)*pow(i+1,MOD-2,MOD)%MOD B*(N-i)*pow(i+1,MOD-2,MOD) B*(N-i) B N-i N i pow(i+1,MOD-2,MOD) pow i+1 i 1 MOD-2 MOD 2 MOD MOD alll = pow(2,N,MOD) -1 alll pow(2,N,MOD) -1 pow(2,N,MOD) pow 2 N MOD 1 ans = alll - (A+B) ans alll - (A+B) alll A+B A B ans = ans%MOD ans ans%MOD ans MOD print(ans) print ans N ,a, b = map(int,input().split()) map(int,input().split()) N alll = pow(2,N,MOD) -1 pow(2,N,MOD) -1 alll A = A*(N-i)*pow(i+1,MOD-2,MOD)%MOD A*(N-i)*pow(i+1,MOD-2,MOD)%MOD A B = 1 1 B ans = alll - (A+B) alll - (A+B) ans MOD = pow(10,9) + 7 pow(10,9) + 7 MOD A = 1 1 A b = map(int,input().split()) map(int,input().split()) b ans = ans%MOD ans%MOD ans B = B*(N-i)*pow(i+1,MOD-2,MOD)%MOD B*(N-i)*pow(i+1,MOD-2,MOD)%MOD B a, b = map(int,input().split()) map(int,input().split()) a
N ,a, b = map(int,input().split())
MOD = pow(10,9) + 7

A = 1  
for i in range(a):
  A = A*(N-i)*pow(i+1,MOD-2,MOD)%MOD

B = 1  
for i in range(b):
  B = B*(N-i)*pow(i+1,MOD-2,MOD)%MOD

alll = pow(2,N,MOD) -1
#nota = cmb(N,a,MOD)
#notb = cmb(N,b,MOD)
ans = alll - (A+B)
ans = ans%MOD
print(ans)