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