
H,W,A,B = map(int,input().split())
blk1 = [[0]*(W-A) for _ in range(H-B)]
blk2 = [[1]*(A) for _ in range(H-B)]
blk3 = [[1]*(W-A) for _ in range(B)]
blk4 = [[0]*(A) for _ in range(B)]

for i in range(len(blk2)):
    blk1[i]=blk1[i]+blk2[i]
#print(blk1)
  
for i in range(len(blk4)):
    blk3[i]=blk3[i]+blk4[i]

blk1 = blk1+blk3

#print(blk1)

for i in range(len(blk1)):
    print(''.join(str(x) for x in blk1[i]))

#print(blk3) H,W,A,B = map(int,input().split()) H map(int,input().split()) map int input().split() ().split () input split W A B [0]*(W-A) for _ in range(H-B) for _ in range(H-B) _ range(H-B) range H-B H B for _ in range(H-B) [0]*(W-A) [0] 0 W-A W A blk1 = [[0]*(W-A) for _ in range(H-B)] blk1 [[0]*(W-A) for _ in range(H-B)] [1]*(A) for _ in range(H-B) for _ in range(H-B) _ range(H-B) range H-B H B for _ in range(H-B) [1]*(A) [1] 1 A blk2 = [[1]*(A) for _ in range(H-B)] blk2 [[1]*(A) for _ in range(H-B)] [1]*(W-A) for _ in range(B) for _ in range(B) _ range(B) range B for _ in range(B) [1]*(W-A) [1] 1 W-A W A blk3 = [[1]*(W-A) for _ in range(B)] blk3 [[1]*(W-A) for _ in range(B)] [0]*(A) for _ in range(B) for _ in range(B) _ range(B) range B for _ in range(B) [0]*(A) [0] 0 A blk4 = [[0]*(A) for _ in range(B)] blk4 [[0]*(A) for _ in range(B)] for i in range(len(blk2)):
    blk1[i]=blk1[i]+blk2[i]
#print(blk1)
   i range(len(blk2)) range len(blk2) len blk2 blk1[i]=blk1[i]+blk2[i] blk1[i] blk1 i blk1[i]+blk2[i] blk1[i] blk1 i blk2[i] blk2 i for i in range(len(blk4)):
    blk3[i]=blk3[i]+blk4[i] i range(len(blk4)) range len(blk4) len blk4 blk3[i]=blk3[i]+blk4[i] blk3[i] blk3 i blk3[i]+blk4[i] blk3[i] blk3 i blk4[i] blk4 i blk1 = blk1+blk3 blk1 blk1+blk3 blk1 blk3 for i in range(len(blk1)):
    print(''.join(str(x) for x in blk1[i]))

#print(blk3) i range(len(blk1)) range len(blk1) len blk1 print(''.join(str(x) for x in blk1[i])) print ''.join(str(x) for x in blk1[i]) ''.join '' join str(x) str x blk4 = [[0]*(A) for _ in range(B)] [[0]*(A) for _ in range(B)] blk4 A,B = map(int,input().split()) map(int,input().split()) A blk1 = [[0]*(W-A) for _ in range(H-B)] [[0]*(W-A) for _ in range(H-B)] blk1 blk2 = [[1]*(A) for _ in range(H-B)] [[1]*(A) for _ in range(H-B)] blk2 W,A,B = map(int,input().split()) map(int,input().split()) W blk3 = [[1]*(W-A) for _ in range(B)] [[1]*(W-A) for _ in range(B)] blk3 H,W,A,B = map(int,input().split()) map(int,input().split()) H blk1 = blk1+blk3 blk1+blk3 blk1 B = map(int,input().split()) map(int,input().split()) B

H,W,A,B = map(int,input().split())
blk1 = [[0]*(W-A) for _ in range(H-B)]
blk2 = [[1]*(A) for _ in range(H-B)]
blk3 = [[1]*(W-A) for _ in range(B)]
blk4 = [[0]*(A) for _ in range(B)]

for i in range(len(blk2)):
    blk1[i]=blk1[i]+blk2[i]
#print(blk1)
  
for i in range(len(blk4)):
    blk3[i]=blk3[i]+blk4[i]

blk1 = blk1+blk3

#print(blk1)

for i in range(len(blk1)):
    print(''.join(str(x) for x in blk1[i]))

#print(blk3)