#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, f, e, k, p, ans = 0, rs = 0;
  scanf("%d%d%d%d%d%d", &a, &b, &c, &d, &e, &f);
  k = min(min(b, c), d);
  ans += f * k;
  p = d - k;
  p = min(a, p);
  ans += e * p;
  k = min(a, d);
  rs += k * e;
  p = d - k;
  p = min(min(b, c), p);
  rs += f * p;
  printf("%d", max(ans, rs));
  return 0;
}
