n, a, b = map(int, input().split())
mod = 10**9 + 7

ans = pow(2, n, mod) - 1

def comb(m):
    x = 1
    y = 1
    for i in range(m):
        x = x*(n - i)%mod
        y = y*(i + 1)%mod
    return (x*pow(y, mod - 2, mod)%mod)

print((ans - comb(a) - comb(b))%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 ans = pow(2, n, mod) - 1 ans pow(2, n, mod) - 1 pow(2, n, mod) pow 2 n mod 1 def comb(m):
    x = 1
    y = 1
    for i in range(m):
        x = x*(n - i)%mod
        y = y*(i + 1)%mod
    return (x*pow(y, mod - 2, mod)%mod) comb x = 1 x 1 y = 1 y 1 for i in range(m):
        x = x*(n - i)%mod
        y = y*(i + 1)%mod
     i range(m) range m x = x*(n - i)%mod x x*(n - i)%mod x*(n - i) x n - i n i mod y = y*(i + 1)%mod y y*(i + 1)%mod y*(i + 1) y i + 1 i 1 mod return (x*pow(y, mod - 2, mod)%mod) x*pow(y, mod - 2, mod)%mod x*pow(y, mod - 2, mod) x pow(y, mod - 2, mod) pow y mod - 2 mod 2 mod mod m m print((ans - comb(a) - comb(b))%mod) print (ans - comb(a) - comb(b))%mod ans - comb(a) - comb(b) ans - comb(a) ans comb(a) comb a comb(b) comb b mod n, a, b = map(int, input().split()) map(int, input().split()) n mod = 10**9 + 7 10**9 + 7 mod a, b = map(int, input().split()) map(int, input().split()) a def comb(m):
    x = 1
    y = 1
    for i in range(m):
        x = x*(n - i)%mod
        y = y*(i + 1)%mod
    return (x*pow(y, mod - 2, mod)%mod) def comb(m):
    x = 1
    y = 1
    for i in range(m):
        x = x*(n - i)%mod
        y = y*(i + 1)%mod
    return (x*pow(y, mod - 2, mod)%mod) comb b = map(int, input().split()) map(int, input().split()) b ans = pow(2, n, mod) - 1 pow(2, n, mod) - 1 ans
n, a, b = map(int, input().split())
mod = 10**9 + 7

ans = pow(2, n, mod) - 1

def comb(m):
    x = 1
    y = 1
    for i in range(m):
        x = x*(n - i)%mod
        y = y*(i + 1)%mod
    return (x*pow(y, mod - 2, mod)%mod)

print((ans - comb(a) - comb(b))%mod)