#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int max = 0;
  long long int t, s, v, j, x = 0, y = 0, m;
  int e, f;
  cin >> t;
  cin >> s;
  cin >> v;
  cin >> j;
  cin >> e;
  cin >> f;
  if (e > f) {
    int min0 = min(t, j);
    m = min0 * e + f * min(s, min(v, j - min0));
    cout << m;
  } else if (f > e) {
    int min0 = min(s, min(v, j));
    m = min0 * f + e * min(t, j - min0);
    cout << m;
  } else if (f == e) {
    int min1 = min(s, min(v, j));
    int m1 = min1 * f + e * min(t, j - min1);
    int min2 = min(t, j);
    int m2 = min2 * e + f * min(s, min(v, j - min2));
    if (m2 > m1)
      cout << m2;
    else
      cout << m1;
  }
  return 0;
}
