#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  int b;
  int m;
  int n;
  int card;
  cin >> a >> b >> m >> n >> card;
  int max = 0;
  int first;
  int sec;
  int c1;
  int c2;
  if (m < n) {
    first = a;
    sec = b;
    c1 = m;
    c2 = n;
  } else {
    first = b;
    sec = a;
    c1 = n;
    c2 = m;
  }
  int temp = card;
  while (temp >= c1 && first) {
    temp -= c1;
    max++;
    first--;
  }
  while (temp >= c2 && sec) {
    temp -= c2;
    max++;
    sec--;
  }
  long long num = a * (m - 1) + b * (n - 1);
  temp = card - num;
  int min = temp < 0 ? 0 : temp;
  cout << min << " " << max;
  return 0;
}
