#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, j, k, n;
  cin >> a >> b >> j >> k >> n;
  if (k < j) {
    swap(k, j);
    swap(a, b);
  }
  cout << max(0, n - a * (j - 1) - b * (k - 1)) << " ";
  if (n > j * a)
    cout << a + (n - j * a) / k;
  else
    cout << n / j;
  return 0;
}
