#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, n, m, x, y;
  long long k, l, a;
  cin >> n >> m >> k >> x >> y;
  if (n > 2) {
    l = k / ((n - 1) * m);
    i = k % ((n - 1) * m);
  }
  if (n == 1) {
    a = k / m;
    j = k % m;
    cout << a + (j >= 1) << " " << a << " " << a + (j >= y);
  } else if (n == 2) {
    l = k / (n * m);
    i = k % (n * m);
    cout << l + (i >= 1) << " " << l << " " << l + (i >= ((x - 1) * m) + y);
  } else if (l == 0) {
    cout << "1 "
         << "0 " << (i >= ((x - 1) * m + y));
  } else if (l % 2 == 0) {
    if (x > 1) {
      if (x != n)
        cout << l + (i > m) << " " << l / 2 << " "
             << l + (i >= ((x - 1) * m + y));
      else
        cout << l + (i > m) << " " << l / 2 << " " << l / 2;
    } else
      cout << l + (i > m) << " " << l / 2 << " " << l / 2 + (i >= y);
  } else {
    if (x < n) {
      if (x != 1)
        cout << l + (i > m) << " " << l / 2 + (i >= m) << " "
             << l + (i >= ((n - x) * m + y));
      else
        cout << l + (i > m) << " " << l / 2 + (i >= m) << " " << l / 2 + 1;
    } else
      cout << l + (i > m) << " " << l / 2 + (i >= m) << " " << l / 2 + (i >= y);
  }
  return 0;
}
