#include #ifdef LOCAL #include #else #define debug(...) void(0) #endif #include "atcoder/modint" using namespace std; typedef long long ll; #define all(x) begin(x), end(x) constexpr int INF = (1 << 30) - 1; constexpr long long IINF = (1LL << 60) - 1; constexpr int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1}; template istream& operator>>(istream& is, vector& v) { for (auto& x : v) is >> x; return is; } template ostream& operator<<(ostream& os, const vector& v) { auto sep = ""; for (const auto& x : v) os << exchange(sep, " ") << x; return os; } template bool chmin(T& x, U&& y) { return y < x and (x = forward(y), true); } template bool chmax(T& x, U&& y) { return x < y and (x = forward(y), true); } template void mkuni(vector& v) { sort(begin(v), end(v)); v.erase(unique(begin(v), end(v)), end(v)); } template int lwb(const vector& v, const T& x) { return lower_bound(begin(v), end(v), x) - begin(v); } using mint = atcoder::modint998244353; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int H, W, N, K; cin >> H >> W >> N >> K; mint ans = mint(H) * W, tot = mint(H - K + 1) * (W - K + 1); if (K - 1 <= H - K and K - 1 <= W - K) ans -= mint(H - K - (K - 1) + 1) * (W - K - (K - 1) + 1) * (1 - mint(K) * K / tot).pow(N); vector xs, ys; for (int i = 0; i < K - 1; i++) { xs.emplace_back(i); xs.emplace_back(H - 1 - i); ys.emplace_back(i); ys.emplace_back(W - 1 - i); } mkuni(xs); mkuni(ys); for (int& x : xs) { int lx = max(0, x - K + 1), rx = min(H - K, x); if (rx < lx) continue; for (int& y : ys) { int ly = max(0, y - K + 1), ry = min(W - K, y); if (ry < ly) continue; ans -= (1 - mint(rx - lx + 1) * (ry - ly + 1) / tot).pow(N); } } for (int& x : xs) { int lx = max(0, x - K + 1), rx = min(H - K, x); if (K - 1 <= W - K) ans -= mint(W - K - (K - 1) + 1) * (1 - mint(rx - lx + 1) * K / tot).pow(N); } for (int& y : ys) { int ly = max(0, y - K + 1), ry = min(W - K, y); if (K - 1 <= H - K) ans -= mint(H - K - (K - 1) + 1) * (1 - mint(ry - ly + 1) * K / tot).pow(N); } cout << ans.val() << '\n'; return 0; }