func_code_string: #include <bits/stdc++.h>   using namespace std;   int c1, c2, c3, c4, n, m, bus[1009], tre[1009], x, z1, z, l, l1, y;   int main() {     cin >> c1 >> c2 >> c3 >> c4;     cin >> n >> m;     for (int i = 1; i <= n; i++) {       cin >> bus[i];       if (l == 0) {         if (x + bus[i] * c1 < x + c2)           x += bus[i] * c1;         else           x += c2;         if (x > c3) x = c3, l = 1;       }     }     for (int i = 1; i <= m; i++) {       cin >> tre[i];       if (l1 == 0) {         if (y + tre[i] * c1 < y + c2)           y += tre[i] * c1;         else           y += c2;         if (y > c3) y = c3, l1 = 1;       }     }     x = min(x + y, c4);     cout << x;   }   