#include using namespace std; typedef pairP; typedef vectorVI; #define rep(i,n) for(int i=0;i<(n);i++) #define pb push_back #define all(v) (v).begin(),(v).end() #define maxv(a,b) (a)=max((a),(b)) #define minv(a,b) (a)=min((a),(b)) #define int long long int dp[2][601]; signed main(){ int N;cin>>N; dp[0][0]=1; bool b=0; rep(i,8){ rep(j,6*N+1){ rep(k,N+1){ if(j+k>6*N)continue; dp[!b][j+k]+=dp[b][j]; } dp[b][j]=0; } b=!b; } cout<