#include <iostream>
using namespace std;
int abs(int x){return x < 0 ? -x : x;}
int distanta_manhattan(int x1, int y1, int x2, int y2){
return abs(x1-x2) + abs(y1-y2);
}
int main(){
int n,m,x,y;
cin >> x >> y >> n >> m;
for(int i = 1; i <= n; i++){
for(int j = 1; j <= m; j++)
cout << (distanta_manhattan(x,y,i,j)+1) << ' ';
cout << '\n';
}
return 0;
}