#include <bits/stdc++.h>
using namespace std;
int main() {
  int a1, a2, k1, k2, n;
  cin >> a1 >> a2 >> k1 >> k2 >> n;
  int minn, maxx = 0;
  int k = a1 * (k1 - 1) + a2 * (k2 - 1);
  if (n <= k)
    minn = 0;
  else {
    minn = n - k;
  }
  if (k1 < k2) {
    swap(k1, k2);
    swap(a1, a2);
  }
  if (a2 * k2 < n) {
    maxx += a2;
    n -= a2 * k2;
    maxx += n / k1;
  } else {
    maxx += n / k2;
  }
  cout << minn << ' ' << maxx << endl;
}
