#include <bits/stdc++.h>
using namespace std;
int main() {
  long int a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;
  long long int cost = 0;
  if (e <= f) {
    if (b <= c && b <= d) {
      cost += b * f;
      d = d - b;
    } else if (c <= b && c <= d) {
      cost += c * f;
      d = d - c;
    } else {
      cost += d * f;
      d = 0;
    }
    if (a <= d) {
      cost += a * e;
    } else
      cost += d * e;
  } else {
    if (a <= d) {
      cost += a * e;
      d = d - a;
      a = 0;
    } else {
      cost += d * e;
      d = 0;
    }
    if (b < c && b < d) {
      cost += b * f;
    } else if (c < b && c < d) {
      cost += c * f;
    } else {
      cost += d * f;
    }
  }
  cout << cost;
}
