#include <bits/stdc++.h> using namespace std; const int N = 1e4 + 10; int v[N], w[N], f[N], n, V; int main() { cin >> n >> V; for (int...