import numpy as np
H,W,A,B=map(int, input().split())
S=np.array([["0"]*W for _  in range(H)])

S[:B, :A]="1"
S[B:, A:]="1"

for s in S:
    print("".join(s.tolist())) import numpy as np numpy 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 for _  in range(H) for _  in range(H) _ range(H) range H for _  in range(H) ["0"]*W ["0"] "0" W S=np.array([["0"]*W for _  in range(H)]) S np.array([["0"]*W for _  in range(H)]) np.array np array [["0"]*W for _  in range(H)] S[:B, :A]="1" S[:B, :A] S :B B "1" S[B:, A:]="1" S[B:, A:] S B: B "1" for s in S:
    print("".join(s.tolist())) s S print("".join(s.tolist())) print "".join(s.tolist()) "".join "" join s.tolist() s.tolist s tolist W,A,B=map(int, input().split()) map(int, input().split()) W S=np.array([["0"]*W for _  in range(H)]) np.array([["0"]*W for _  in range(H)]) S H,W,A,B=map(int, input().split()) map(int, input().split()) H B=map(int, input().split()) map(int, input().split()) B A,B=map(int, input().split()) map(int, input().split()) A
import numpy as np
H,W,A,B=map(int, input().split())
S=np.array([["0"]*W for _  in range(H)])

S[:B, :A]="1"
S[B:, A:]="1"

for s in S:
    print("".join(s.tolist()))