#include <iostream>
using namespace std;
long long n,sum=0,a[1005][1005]={};
int main()
{
cin >> n;
a[1][1]=1;
for(int i=1;i<=n;i++)
{
for(int j=1;j<=n;j++)
{
if(i*j!=1)
{
a[i][j]=(a[i][j-1]+a[i-1][j])%1000000007;
}
}
sum+=2*a[i][n];
sum%=1000000007;
}
cout << sum << ' ' <<n*n;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: