#include <bits/stdc++.h>
using namespace std;
int main() {
  int a1, a2, k1, k2, n, n1, mn, mx, mn1, mx1, n2, amx, amn;
  while (scanf("%d%d%d%d%d", &a1, &a2, &k1, &k2, &n) == 5) {
    mn1 = min(k1, k2);
    mx1 = max(k1, k2);
    if (mn1 == k1) {
      amn = a1;
      amx = a2;
    } else {
      amn = a2;
      amx = a1;
    }
    n1 = min(amn, n / mn1);
    n2 = (n - (n1 * mn1)) / mx1;
    mx = n1 + min(n2, amx);
    mn = max(0, n - (((k1 - 1) * a1) + ((k2 - 1) * a2)));
    printf("%d %d\n", mn, mx);
  }
  return 0;
}
