#include <bits/stdc++.h>
using namespace std;
int main() {
  int a1, a2, k1, k2, m, n, c, t;
  c = 0;
  cin >> a1;
  cin >> a2;
  cin >> k1;
  cin >> k2;
  cin >> n;
  m = n;
  if (k2 < k1) {
    t = a1;
    a1 = a2;
    a2 = t;
    t = k1;
    k1 = k2;
    k2 = t;
  }
  n -= a2 * (k2 - 1);
  n -= a1 * (k1 - 1);
  if (n > 0) c = n;
  cout << c << " ";
  c = 0;
  n = m;
  c += min(a1, (n / k1));
  n -= (c * k1);
  c += min(a2, (n / k2));
  cout << c;
  return 0;
}
