#include<bits/stdc++.h>
using namespace std;
int n, m, p, q;
int a[25][25];
int hx[8]={1,1,-1,-1,2,2,-2,-2};
int hy[8]={2,-2,2,-2,1,-1,1,-1};
int f(int x,int y){
if(x==1&&y==1)return 0;
else if(a[x][y]==-1)return 0;
return f(x-1,y)+f(x,y-1);
}
int main() {
ios::sync_with_stdio(false), cin.tie(0);
cin >> n >> m >> p >> q;
n++,m++,p++,q++;
for (int i = 0; i < 8; i++) {
int x=p+hx[i], y=q+hy[i];
if(x<=n&&x>0&&y<=m&&y>0) a[x][y]=-1;
}
a[p][q]=-1;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= m; j++) {
if (a[i][j]==0) cout << " "<< a[i][j];
else cout << ' ' << a[i][j];
}
cout << '\n';
}
return 0;
}