h,w = gets.split(" ").map(&:to_i) #??????????????\??????????????????


for countH in 0...h  # ??????????´????H????????????

	for count in 0...w do???# ?¨????????????¢????????????
		print '#'
	end
	print "\n"

end