import sys
h, w, a, b = [int(i) for i in sys.stdin.readline().split()]
res = []
res.append(("0" * a + "1" * (w - a) + "\n") * b)
res.append(("1" * a + "0" * (w - a) + "\n") * (h-b))
print("".join(res)) import sys sys int(i) for i in sys.stdin.readline().split() for i in sys.stdin.readline().split() i sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split for i in sys.stdin.readline().split() int(i) int i h, w, a, b = [int(i) for i in sys.stdin.readline().split()] h [int(i) for i in sys.stdin.readline().split()] w a b res = [] res [] res.append(("0" * a + "1" * (w - a) + "\n") * b) res.append res append ("0" * a + "1" * (w - a) + "\n") * b "0" * a + "1" * (w - a) + "\n" "0" * a + "1" * (w - a) "0" * a "0" a "1" * (w - a) "1" w - a w a "\n" b res.append(("1" * a + "0" * (w - a) + "\n") * (h-b)) res.append res append ("1" * a + "0" * (w - a) + "\n") * (h-b) "1" * a + "0" * (w - a) + "\n" "1" * a + "0" * (w - a) "1" * a "1" a "0" * (w - a) "0" w - a w a "\n" h-b h b print("".join(res)) print "".join(res) "".join "" join res a, b = [int(i) for i in sys.stdin.readline().split()] [int(i) for i in sys.stdin.readline().split()] a h, w, a, b = [int(i) for i in sys.stdin.readline().split()] [int(i) for i in sys.stdin.readline().split()] h b = [int(i) for i in sys.stdin.readline().split()] [int(i) for i in sys.stdin.readline().split()] b w, a, b = [int(i) for i in sys.stdin.readline().split()] [int(i) for i in sys.stdin.readline().split()] w res = [] [] res
import sys
h, w, a, b = [int(i) for i in sys.stdin.readline().split()]
res = []
res.append(("0" * a + "1" * (w - a) + "\n") * b)
res.append(("1" * a + "0" * (w - a) + "\n") * (h-b))
print("".join(res))