#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, e, f, A, B, s = 0, C, l;
  cin >> a >> b >> c >> d >> e >> f;
  C = min(b, c);
  A = min(C, d);
  B = d;
  if (e < f) {
    s = A * f;
    B = abs(A - d);
    if ((a - B) >= 0) {
      s = s + B * e;
    } else {
      s = s + a * e;
    }
    cout << s << endl;
  } else {
    if ((a - B) >= 0) {
      s = s + B * e;
    } else {
      s = s + a * e;
    }
    l = B - a;
    if (l >= 0) {
      C = min(b, c);
      A = min(C, l);
      s = s + A * f;
    }
    cout << s << endl;
  }
  return 0;
}
