#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, ka, kb, n;
  cin >> a >> b >> ka >> kb >> n;
  int mn = 0, mx = 0;
  int x = a * (ka - 1) + b * (kb - 1);
  if (x < n) mn = n - x;
  if (ka > kb) {
    swap(ka, kb);
    swap(a, b);
  }
  mn = min(mn, a + b);
  while (n - ka >= 0 && a > 0) {
    n -= ka;
    a--;
    mx++;
  }
  while (n - kb >= 0 && b > 0) {
    n -= kb;
    b--;
    mx++;
  }
  cout << mn << ' ' << mx << endl;
  return 0;
}
