#include <bits/stdc++.h>
using namespace std;
int main() {
  int a1, a2;
  cin >> a1 >> a2;
  int k1, k2;
  cin >> k1 >> k2;
  int ans = 0;
  if (k1 > k2) {
    swap(a1, a2);
    swap(k1, k2);
  }
  int n;
  cin >> n;
  int ncopy = n;
  ans = min(n / k1, a1);
  n -= ans * k1;
  ans += min(n / k2, a2);
  int mx = ans;
  ans = 0;
  n = ncopy;
  n -= (k1 - 1) * a1 + (k2 - 1) * a2;
  int mn = max(n, 0);
  cout << mn << " " << mx << endl;
}
