#include <bits/stdc++.h>
using namespace std;
int main() {
  int a1, a2, k1, k2, n, ans, p, c = 0;
  cin >> a1 >> a2 >> k1 >> k2 >> n;
  if (n == (a1 * k1) + (a2 * k2))
    cout << a1 + a2 << " " << a1 + a2 << endl;
  else {
    ans = ((k1 - 1) * a1) + ((k2 - 1) * a2);
    if (n <= ans)
      cout << 0 << " ";
    else
      cout << n - ans << " ";
    if (k1 > k2) {
      for (int i = 0; a2 != 0 && n >= k2; i++) {
        n = n - k2;
        a2--;
        c++;
      }
      for (int i = 0; a1 != 0 && n >= k1; i++) {
        n = n - k1;
        a2--;
        c++;
      }
      cout << c << endl;
    } else {
      for (int i = 0; a1 != 0 && n >= k1; i++) {
        n = n - k1;
        a1--;
        c++;
      }
      for (int i = 0; a2 != 0 && n >= k2; i++) {
        n = n - k2;
        a1--;
        c++;
      }
      cout << c << endl;
    }
  }
}
