#include <bits/stdc++.h>
using namespace std;
long long a[101][101];
int main() {
  long long i, j, k, n, t, m, f, y1, x1, c, x, y, z;
  cin >> n >> m >> k >> x1 >> y1;
  for (i = 1; i <= n; i++)
    for (j = 1; j <= m; j++) a[i][j] = 0;
  if (n > 1) {
    if (k <= n * m) {
      i = 1;
      while (i <= n && k > 0) {
        j = 1;
        while (j <= m && k > 0) {
          k--;
          a[i][j]++;
          j++;
        }
        i++;
      }
    } else {
      i = 1;
      while (i <= n) {
        j = 1;
        while (j <= m) {
          a[i][j]++;
          j++;
        }
        i++;
      }
      k = k - n * m;
      if (k <= (n - 1) * m) {
        i = n - 1;
        while (k > 0 && i >= 1) {
          j = 1;
          while (j <= m && k > 0) {
            k--;
            a[i][j]++;
            j++;
          }
          i--;
        }
      } else {
        y = k / ((n - 1) * m);
        z = k - (y) * ((n - 1) * m);
        for (j = 1; j <= m; j++) a[1][j] = a[1][j] + (y + 1) / 2;
        for (j = 1; j <= m; j++) a[n][j] = a[n][j] + y / 2;
        for (i = 2; i <= n - 1; i++)
          for (j = 1; j <= m; j++) a[i][j] = a[i][j] + y;
        if (z > 0) {
          if (y % 2 == 1) {
            i = 2;
            while (z > 0 && i <= n) {
              j = 1;
              while (j <= m && z > 0) {
                z--;
                a[i][j]++;
                j++;
              }
              i++;
            }
          } else {
            i = n - 1;
            while (z > 0 && i >= 1) {
              j = 1;
              while (j <= m && z > 0) {
                z--;
                a[i][j]++;
                j++;
              }
              i--;
            }
          }
        }
      }
    }
  } else {
    for (j = 1; j <= m; j++) a[1][j] = k / m;
    k = k - a[1][1] * m;
    j = 1;
    while (k > 0) {
      a[1][j]++;
      j++;
      k--;
    }
  }
  long long ma, mi;
  ma = mi = a[1][1];
  for (i = 1; i <= n; i++)
    for (j = 1; j <= m; j++) {
      ma = max(ma, a[i][j]);
      mi = min(mi, a[i][j]);
    }
  cout << ma << " " << mi << " " << a[x1][y1];
  return 0;
}
