public void output() {
    int i, j;
    int[] g = new int[21];
    j = corp;
    for (i = invest; i >= 1; i--) {
      g[i] = bestProfitTable[j][i];
      j -= g[i];
    }
    for (i = 1; i <= invest; i++)
      System.out.println(g[i]);
  }