#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, e, f, s = 0;
  cin >> a;
  cin >> b;
  cin >> c;
  cin >> d;
  cin >> e;
  cin >> f;
  int mo = min(a, d), mt = min(b, min(c, d));
  if (e < f || (mo * e) < (mt * f)) {
    if ((d - mt) <= a)
      s = (mt * f) + (d - mt) * e;
    else
      s = (mt * f) + a * e;
  } else {
    if (d - mo == 0)
      s = (mo * e);
    else if ((d - mo) <= mt)
      s = (mo * e) + (d - mo) * f;
    else
      s = (mo * e) + mt * f;
  }
  cout << s << "\n";
}
