N,A,B=map(int,input().split())
M=10**9+7

def cmb(N,R,M):
    C=[1]*(R+1)
    for i in range(1,R+1):
        C[i]=(C[i-1]*(N+1-i)*pow(i,M-2,M))%M
    return C

C=cmb(N,B,M)
ans=pow(2,N,M)-1
ans-=C[A]+C[B]
print(ans%M) 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 def cmb(N,R,M):
    C=[1]*(R+1)
    for i in range(1,R+1):
        C[i]=(C[i-1]*(N+1-i)*pow(i,M-2,M))%M
    return C cmb C=[1]*(R+1) C [1]*(R+1) [1] 1 R+1 R 1 for i in range(1,R+1):
        C[i]=(C[i-1]*(N+1-i)*pow(i,M-2,M))%M
     i range(1,R+1) range 1 R+1 R 1 C[i]=(C[i-1]*(N+1-i)*pow(i,M-2,M))%M C[i] C i (C[i-1]*(N+1-i)*pow(i,M-2,M))%M C[i-1]*(N+1-i)*pow(i,M-2,M) C[i-1]*(N+1-i) C[i-1] C i-1 i 1 N+1-i N+1 N 1 i pow(i,M-2,M) pow i M-2 M 2 M M return C C N N R R M M C=cmb(N,B,M) C cmb(N,B,M) cmb N B M ans=pow(2,N,M)-1 ans pow(2,N,M)-1 pow(2,N,M) pow 2 N M 1 ans-=C[A]+C[B] ans C[A]+C[B] C[A] C A C[B] C B print(ans%M) print ans%M ans M ans-=C[A]+C[B] C[A]+C[B] ans N,A,B=map(int,input().split()) map(int,input().split()) N M=10**9+7 10**9+7 M C=cmb(N,B,M) cmb(N,B,M) C def cmb(N,R,M):
    C=[1]*(R+1)
    for i in range(1,R+1):
        C[i]=(C[i-1]*(N+1-i)*pow(i,M-2,M))%M
    return C def cmb(N,R,M):
    C=[1]*(R+1)
    for i in range(1,R+1):
        C[i]=(C[i-1]*(N+1-i)*pow(i,M-2,M))%M
    return C cmb A,B=map(int,input().split()) map(int,input().split()) A ans=pow(2,N,M)-1 pow(2,N,M)-1 ans B=map(int,input().split()) map(int,input().split()) B
N,A,B=map(int,input().split())
M=10**9+7

def cmb(N,R,M):
    C=[1]*(R+1)
    for i in range(1,R+1):
        C[i]=(C[i-1]*(N+1-i)*pow(i,M-2,M))%M
    return C

C=cmb(N,B,M)
ans=pow(2,N,M)-1
ans-=C[A]+C[B]
print(ans%M)