3 2 1
4
#include<cstdio>
#include<iostream>
#include<cmath>
#include<cstring>
#include<algorithm>
#include<queue>
#include<stack>
#define LL long long
using namespace std;
LL dp[10001][2][305];//长度为i,最后以j结尾的个数;
const LL MOD=1e9+7;
int main()
{
int n,a,b;
while(~scanf("%d%d%d",&n,&a,&b))
{
memset(dp,0,sizeof(dp));
dp[1][0][1]=1;
dp[1][1][1]=1;
for(int i=2;i<=n;i++)
{
for(int j=0;j<2;j++)//以哪种颜色结尾;
{
for(int k=0;k<2;k++) //新添加的是那种颜色;
{
if(j==0)
{
if(j==k)
for(int x=1;x<=a;x++)
{
(dp[i][j][x]+=dp[i-1][j][x-1])%=MOD;
}
else
{
for(int x=1;x<=a;x++)
{
(dp[i][k][1]+=dp[i-1][j][x])%=MOD;
}
}
}
else
{
if(j==k)
for(int x=1;x<=b;x++)
{
(dp[i][j][x]+=dp[i-1][j][x-1])%=MOD;
}
else
{
for(int x=1;x<=b;x++)
{
(dp[i][k][1]+=dp[i-1][j][x])%=MOD;
}
}
}
}
}
}
LL ans=0;
for(int i=0;i<=a;i++)
{
(ans+=dp[n][0][i])%=MOD;
}
for(int i=0;i<=b;i++)
(ans+=dp[n][1][i])%=MOD;
printf("%lld\n",(ans));
}
return 0;
}