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