miis=lambda:map(int,input().split())

h,w,a,b=miis()
ans=[]
for i in range(b):
  ans.append(['1']*a+['0']*(w-a))
for i in range(h-b):
  ans.append(['0']*a+['1']*(w-a))
for i in ans:
  print(''.join(i)) miis=lambda:map(int,input().split()) miis lambda:map(int,input().split()) map(int,input().split()) map int input().split() ().split () input split h,w,a,b=miis() h miis() miis w a b ans=[] ans [] for i in range(b):
  ans.append(['1']*a+['0']*(w-a)) i range(b) range b ans.append(['1']*a+['0']*(w-a)) ans.append ans append ['1']*a+['0']*(w-a) ['1']*a ['1'] '1' a ['0']*(w-a) ['0'] '0' w-a w a for i in range(h-b):
  ans.append(['0']*a+['1']*(w-a)) i range(h-b) range h-b h b ans.append(['0']*a+['1']*(w-a)) ans.append ans append ['0']*a+['1']*(w-a) ['0']*a ['0'] '0' a ['1']*(w-a) ['1'] '1' w-a w a for i in ans:
  print(''.join(i)) i ans print(''.join(i)) print ''.join(i) ''.join '' join i b=miis() miis() b a,b=miis() miis() a w,a,b=miis() miis() w h,w,a,b=miis() miis() h ans=[] [] ans miis=lambda:map(int,input().split()) lambda:map(int,input().split()) miis
miis=lambda:map(int,input().split())

h,w,a,b=miis()
ans=[]
for i in range(b):
  ans.append(['1']*a+['0']*(w-a))
for i in range(h-b):
  ans.append(['0']*a+['1']*(w-a))
for i in ans:
  print(''.join(i))