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