#include <bits/stdc++.h>
using namespace std;
int wyU, FCK, qt, p, xt;
int ans1, ans2;
int main() {
  scanf("%d%d%d%d%d", &wyU, &FCK, &qt, &p, &xt);
  if (qt < p) {
    swap(qt, p);
    swap(wyU, FCK);
  }
  int SuvDDSB = xt - ((qt - 1) * wyU + (p - 1) * FCK);
  if (SuvDDSB <= 0)
    ans1 = 0;
  else
    ans1 = SuvDDSB;
  int rFqt = xt / p;
  if (rFqt > FCK)
    ans2 = FCK + (xt - FCK * p) / qt;
  else
    ans2 = rFqt;
  printf("%d %d", ans1, ans2);
  return 0;
}
