#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, e, f;
  cin >> a;
  cin >> b;
  cin >> c;
  cin >> d;
  cin >> e;
  cin >> f;
  int sum1 = 0;
  int sum2 = 0;
  if (f >= e) {
    while (b > 0 and c > 0 and d > 0) {
      b--;
      c--;
      d--;
      sum1++;
    }
    while (a > 0 and d > 0) {
      a--;
      d--;
      sum2++;
    }
    cout << ((sum1 * f) + (sum2 * e)) << endl;
  } else {
    while (a > 0 and d > 0) {
      a--;
      d--;
      sum1++;
    }
    while (b > 0 and c > 0 and d > 0) {
      b--;
      c--;
      d--;
      sum2++;
    }
    cout << ((sum1 * e) + (sum2 * f)) << endl;
  }
  return 0;
}
