#include <bits/stdc++.h>
using namespace std;
long long a[111][111];
int main() {
  long long n, m, k, x, y;
  cin >> n >> m >> k >> x >> y;
  long long sum = m;
  if (n > 1) {
    sum += m;
  }
  if (n > 2) {
    sum += m * (n - 2) * 2;
  }
  long long MAX = 0;
  long long MIN = 0;
  long long me = 0;
  if (n == 1) {
    MIN = MAX = k / sum;
    if (k % sum) {
      MAX++;
    }
    k %= sum;
    if (k >= y) {
      me = MAX;
    } else {
      me = MIN;
    }
  } else if (n == 2) {
    MIN = MAX = k / sum;
    if (k % sum) {
      MAX++;
    }
    k %= sum;
    if (x > 1) {
      y += m;
    }
    if (k + 1 >= y) {
      me = MAX;
    } else {
      me = MIN;
    }
  } else {
    MIN = MAX = k / sum;
    MAX *= 2;
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        if (i == 0 || i == n - 1) {
          a[i][j] = MIN;
        } else {
          a[i][j] = MAX;
        }
      }
    }
    k %= sum;
    for (int i = 0; i < n && k > 0; i++) {
      for (int j = 0; j < m && k > 0; j++, k--) {
        a[i][j]++;
      }
    }
    for (int i = n - 2; i > 0 && k > 0; i--) {
      for (int j = 0; j < m && k > 0; j++, k--) {
        a[i][j]++;
      }
    }
    MIN = 1e18 + 10;
    MAX = 0;
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {
        MAX = max(MAX, a[i][j]);
        MIN = min(MIN, a[i][j]);
      }
    }
    me = a[x - 1][y - 1];
  }
  cout << MAX << " " << MIN << " " << me << endl;
  return 0;
}
