#???Hcm?¨?Wcm???????????¢?????????????????°??????
 #????????¢???????????????H??¨?¨??????????W??????????????????????????§??\?????????????????????

wide = []
high = []
count = 0

for count in 0...100 
	 w,h = gets.split(" ").map(&:to_i)
	 if w == 0 && h == 0
	 	break;
	 end

	 wide << w
	 high << h
end

for coul in 0...count

	for counth in 0...high[coul]

		for countw in 0...wide[coul]
			print '#'
		end

		puts ""
	end
end



 