h,w,a,b = [int(x) for x in input().split()]
m = [["1"]*w for i in range(h)]
for i in range(h):
    for j in range(w):
        if i<=b-1 and j<=a-1:
            m[i][j] = "0"
        if i>b-1 and j>a-1:
            m[i][j] = "0"
        
for i in range(h):
    s = ""
    for j in range(w):
        s += m[i][j]
    print(s) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x h,w,a,b = [int(x) for x in input().split()] h [int(x) for x in input().split()] w a b ["1"]*w for i in range(h) for i in range(h) i range(h) range h for i in range(h) ["1"]*w ["1"] "1" w m = [["1"]*w for i in range(h)] m [["1"]*w for i in range(h)] for i in range(h):
    for j in range(w):
        if i<=b-1 and j<=a-1:
            m[i][j] = "0"
        if i>b-1 and j>a-1:
            m[i][j] = "0"
         i range(h) range h for j in range(w):
        if i<=b-1 and j<=a-1:
            m[i][j] = "0"
        if i>b-1 and j>a-1:
            m[i][j] = "0"
         j range(w) range w if i<=b-1 and j<=a-1:
            m[i][j] = "0"
         i<=b-1 and j<=a-1 i<=b-1 i b-1 b 1 j<=a-1 j a-1 a 1 m[i][j] = "0" m[i][j] [i] m i j "0" if i>b-1 and j>a-1:
            m[i][j] = "0"
         i>b-1 and j>a-1 i>b-1 i b-1 b 1 j>a-1 j a-1 a 1 m[i][j] = "0" m[i][j] [i] m i j "0" for i in range(h):
    s = ""
    for j in range(w):
        s += m[i][j]
    print(s) i range(h) range h s = "" s "" for j in range(w):
        s += m[i][j]
     j range(w) range w s += m[i][j] s m[i][j] [i] m i j print(s) print s h,w,a,b = [int(x) for x in input().split()] [int(x) for x in input().split()] h w,a,b = [int(x) for x in input().split()] [int(x) for x in input().split()] w s = "" "" s m = [["1"]*w for i in range(h)] [["1"]*w for i in range(h)] m s += m[i][j] m[i][j] s b = [int(x) for x in input().split()] [int(x) for x in input().split()] b a,b = [int(x) for x in input().split()] [int(x) for x in input().split()] a
h,w,a,b = [int(x) for x in input().split()]
m = [["1"]*w for i in range(h)]
for i in range(h):
    for j in range(w):
        if i<=b-1 and j<=a-1:
            m[i][j] = "0"
        if i>b-1 and j>a-1:
            m[i][j] = "0"
        
for i in range(h):
    s = ""
    for j in range(w):
        s += m[i][j]
    print(s)