#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, x, y;
  long long int maxi, mini, mine, r, c, k;
  scanf("%d%d%lld%d%d", &n, &m, &k, &x, &y);
  if (n <= 2) {
    r = k / (m * n);
    c = k % (m * n);
    maxi = r + (c > 0);
    mini = r;
    mine = r + ((x - 1) * m + y <= c);
  } else {
    r = k / (m * 2 * (n - 1));
    c = k % (m * 2 * (n - 1));
    maxi = max(r * 2 + (c > m) + (c > m * n), r + (c > 0));
    mini = r + (c >= m * n);
    if (x == n || x == 1)
      mine = r + (c >= (x - 1) * m + y);
    else
      mine = r * 2 + (c >= ((x - 1) * m + y)) +
             (c >= (m * n + (n - 1 - x) * m + y));
  }
  printf("%lld %lld %lld\n", maxi, mini, mine);
}
