n,a,b = map(int, input().split())
MOD = 10**9 + 7
allpair = pow(2,n,MOD)

def combo(n,k):
    c = 1
    for i in range(k):
        c *= n - i
        c %= MOD

    d = 1
    for i in range(1, k+1):
        d *= i
        d %= MOD

    return (c * pow(d, MOD-2, MOD)) % MOD

print((allpair - combo(n, a) - combo(n, b) - 1) % 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 allpair = pow(2,n,MOD) allpair pow(2,n,MOD) pow 2 n MOD def combo(n,k):
    c = 1
    for i in range(k):
        c *= n - i
        c %= MOD

    d = 1
    for i in range(1, k+1):
        d *= i
        d %= MOD

    return (c * pow(d, MOD-2, MOD)) % MOD combo c = 1 c 1 for i in range(k):
        c *= n - i
        c %= MOD

     i range(k) range k c *= n - i c n - i n i c %= MOD c MOD d = 1 d 1 for i in range(1, k+1):
        d *= i
        d %= MOD

     i range(1, k+1) range 1 k+1 k 1 d *= i d i d %= MOD d MOD return (c * pow(d, MOD-2, MOD)) % MOD (c * pow(d, MOD-2, MOD)) % MOD c * pow(d, MOD-2, MOD) c pow(d, MOD-2, MOD) pow d MOD-2 MOD 2 MOD MOD n n k k print((allpair - combo(n, a) - combo(n, b) - 1) % MOD) print (allpair - combo(n, a) - combo(n, b) - 1) % MOD allpair - combo(n, a) - combo(n, b) - 1 allpair - combo(n, a) - combo(n, b) allpair - combo(n, a) allpair combo(n, a) combo n a combo(n, b) combo n b 1 MOD def combo(n,k):
    c = 1
    for i in range(k):
        c *= n - i
        c %= MOD

    d = 1
    for i in range(1, k+1):
        d *= i
        d %= MOD

    return (c * pow(d, MOD-2, MOD)) % MOD def combo(n,k):
    c = 1
    for i in range(k):
        c *= n - i
        c %= MOD

    d = 1
    for i in range(1, k+1):
        d *= i
        d %= MOD

    return (c * pow(d, MOD-2, MOD)) % MOD combo a,b = map(int, input().split()) map(int, input().split()) a MOD = 10**9 + 7 10**9 + 7 MOD allpair = pow(2,n,MOD) pow(2,n,MOD) allpair n,a,b = map(int, input().split()) map(int, input().split()) n b = map(int, input().split()) map(int, input().split()) b
n,a,b = map(int, input().split())
MOD = 10**9 + 7
allpair = pow(2,n,MOD)

def combo(n,k):
    c = 1
    for i in range(k):
        c *= n - i
        c %= MOD

    d = 1
    for i in range(1, k+1):
        d *= i
        d %= MOD

    return (c * pow(d, MOD-2, MOD)) % MOD

print((allpair - combo(n, a) - combo(n, b) - 1) % MOD)
