3-knapsack. prepare