}
}
dp[i][numi][numj] =max( mmax , dp[i-1][numj][numk]);
ans = max(ans,dp[i][numi][numj]);
}
}
}
printf("%d\n",max(ans,mm));
}
return 0;
}