#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
void Code_By_Mohamed_Khaled() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
}
ll Sum_of_range(ll l, ll r) {
if (l > r) return 0;
return r * (r + 1) / 2 - l * (l - 1) / 2;
}
ll mod = 1e9 + 7;
ll add(ll a, ll b) { return ((b % mod) + (a % mod)) % mod; }
ll mul(ll a, ll b) { return ((b % mod) * (a % mod)) % mod; }
ll fast_power(ll x,ll y,ll mod)
{
ll res=1;
x=x%mod;
if (x==0) return 0;
while (y > 0)
{
if (y & 1)res=(res*x)%mod;
y=y>>1;
x=(x*x)%mod;
}
return res;
}
ll nCr(ll n, ll r)
{
if (r > n)return 0;
r = min(r, n - r);
ll x=1,y=1;
for (ll i = 0; i < r; i++) {
x=(x*((n-i)%mod))%mod;
y=(y*(i+1))%mod;
}
ll inv=fast_power(y,mod-2,mod);
return (x*inv)%mod;
}
int main() {
#ifndef ONLINE_JUDGE
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
#endif
Code_By_Mohamed_Khaled();
ll n,a,b;cin>>n>>a>>b;
ll ans=(fast_power(2,n,mod)-1-nCr(n,a)-nCr(n,b)+3*mod)%mod;
cout<<ans;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnR5cGVkZWYgbG9uZyBsb25nIGxsOwp1c2luZyBuYW1lc3BhY2Ugc3RkOwp2b2lkIENvZGVfQnlfTW9oYW1lZF9LaGFsZWQoKSB7CiAgICBpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKGZhbHNlKTsKICAgIGNpbi50aWUobnVsbHB0cik7CiAgICBjb3V0LnRpZShudWxscHRyKTsKfQpsbCBTdW1fb2ZfcmFuZ2UobGwgbCwgbGwgcikgewogICAgaWYgKGwgPiByKSByZXR1cm4gMDsKICAgIHJldHVybiByICogKHIgKyAxKSAvIDIgLSBsICogKGwgLSAxKSAvIDI7Cn0KbGwgbW9kID0gMWU5ICsgNzsK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