#include <bits/stdc++.h>
template <class T>
inline void rd(T &x) {
  char c = getchar();
  x = 0;
  while (!isdigit(c)) c = getchar();
  while (isdigit(c)) {
    x = x * 10 + c - '0';
    c = getchar();
  }
}
using namespace std;
const int N = 111;
const int M = 531;
long long a[N][N], INF = 1e18 + 2;
int main() {
  long long n, m, k, x, y;
  cin >> n >> m >> k >> x >> y;
  long long num1, num2, tot;
  tot = ((n - 2) * 2 + 2) * m;
  tot = max(tot, m);
  num1 = k / tot;
  num2 = 2 * num1;
  k %= tot;
  for (int i = 1; i < n - 1; i++)
    for (int j = 0; j < m; j++) a[i][j] = num2;
  for (int j = 0; j < m; j++) a[0][j] = a[n - 1][j] = num1;
  for (int i = 0; i < n; i++) {
    if (!k) break;
    for (int j = 0; j < m; j++) {
      k--;
      a[i][j]++;
      if (!k) break;
    }
    if (!k) break;
  }
  for (int i = n - 2; i > 0; i--) {
    if (!k) break;
    for (int j = 0; j < m; j++) {
      k--;
      a[i][j]++;
      if (!k) break;
    }
    if (!k) break;
  }
  long long m1 = 0, m2 = INF;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < m; j++) m1 = max(m1, a[i][j]), m2 = min(m2, a[i][j]);
  cout << m1 << ' ' << m2 << ' ' << a[x - 1][y - 1] << endl;
  return 0;
}
