#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long inf = 2e18;
string Z = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
string z = "abcdefghijklmnopqrstuvwxyz";
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long o = 0;
  if (o) {
    freopen("fin.txt", "r", stdin);
    freopen("fout.txt", "w", stdout);
  }
  long long a;
  cin >> a;
  long long b;
  cin >> b;
  long long c;
  cin >> c;
  long long d;
  cin >> d;
  long long e;
  cin >> e;
  long long f;
  cin >> f;
  b = min(b, c);
  d = min(d, a + b);
  if (e >= f) {
    long long A = min(a, d);
    cout << A * e + min(b, d - A) * f << endl;
  } else {
    long long B = min(b, d);
    cout << B * f + min(a, d - B) * e << endl;
  }
  return 0;
}
