H, W, A, B = map(int, input().split())
print("\n".join(["1" * A + "0" * (W - A)] * B + ["0" * A + "1" * (W - A)] * (H - B))) H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B print("\n".join(["1" * A + "0" * (W - A)] * B + ["0" * A + "1" * (W - A)] * (H - B))) print "\n".join(["1" * A + "0" * (W - A)] * B + ["0" * A + "1" * (W - A)] * (H - B)) "\n".join "\n" join ["1" * A + "0" * (W - A)] * B + ["0" * A + "1" * (W - A)] * (H - B) ["1" * A + "0" * (W - A)] * B ["1" * A + "0" * (W - A)] "1" * A + "0" * (W - A) "1" * A "1" A "0" * (W - A) "0" W - A W A B ["0" * A + "1" * (W - A)] * (H - B) ["0" * A + "1" * (W - A)] "0" * A + "1" * (W - A) "0" * A "0" A "1" * (W - A) "1" W - A W A H - B H B B = map(int, input().split()) map(int, input().split()) B H, W, A, B = map(int, input().split()) map(int, input().split()) H W, A, B = map(int, input().split()) map(int, input().split()) W A, B = map(int, input().split()) map(int, input().split()) A
H, W, A, B = map(int, input().split())
print("\n".join(["1" * A + "0" * (W - A)] * B + ["0" * A + "1" * (W - A)] * (H - B)))