#include <bits/stdc++.h>   using namespace std;   int c1, c2, c3, c4;   int a[1111], b[1111];   int n, m;   int main() {     while (cin >> c1 >> c2 >> c3 >> c4) {       cin >> n >> m;       for (int i = 0; i < n; i++) cin >> a[i];       for (int i = 0; i < m; i++) cin >> b[i];       int mi = min(c4, 2 * c3);       int nm = c3;       for (int i = 0; i < n; i++) nm += min(c1 * a[i], c2);       mi = min(mi, nm);       nm = c3;       for (int i = 0; i < m; i++) nm += min(c1 * b[i], c2);       mi = min(mi, nm);       nm = 0;       for (int i = 0; i < n; i++) nm += min(c1 * a[i], c2);       for (int i = 0; i < m; i++) nm += min(c1 * b[i], c2);       mi = min(mi, nm);       cout << mi << endl;     }     return 0;   }   