func_code_string: #include <bits/stdc++.h>   using namespace std;   int dp[1024], n, m, c1, c2, c3, c4, an[1024], am[1024];   int main() {     ios_base::sync_with_stdio(0);     cin.tie(0);     cin >> c1 >> c2 >> c3 >> c4;     cin >> n >> m;     for (int i = 0; i < n; ++i) cin >> an[i];     for (int i = 0; i < m; ++i) cin >> am[i];     int mini = INT_MAX;     mini = min(mini, c4);     mini = min(mini, 2 * c3);     int s1 = 0;     for (int i = 0; i < n; ++i) {       s1 += min(c1 * an[i], c2);     }     mini = min(mini, c3 + s1);     int s2 = 0;     for (int i = 0; i < m; ++i) {       s2 += min(c1 * am[i], c2);     }     mini = min(mini, c3 + s2);     mini = min(mini, s1 + s2);     cout << mini << endl;     return 0;   }   