#include <bits/stdc++.h>
using namespace std;
int main() {
  int a1, a2, k1, k2, n;
  int min1, minp1, max1, maxp1;
  cin >> a1 >> a2 >> k1 >> k2 >> n;
  if (min(k1, k2) == k1) {
    min1 = k1;
    minp1 = a1;
    max1 = k2;
    maxp1 = a2;
  } else {
    min1 = k2;
    minp1 = a2;
    max1 = k1;
    maxp1 = a1;
  }
  if (n <= (max1 - 1) * maxp1 + (min1 - 1) * (minp1)) {
    if (n > min1 * minp1)
      cout << "0 " << (n - minp1 * min1) / max1 + minp1;
    else
      cout << "0 " << n / min1;
  } else {
    cout << n - ((max1 - 1) * maxp1) - ((min1 - 1) * minp1) << " "
         << (n - minp1 * min1) / max1 + minp1;
  }
  return 0;
}
