loop do
    input = gets.split(" ")
    input.map!(&:to_i)
    if input[0] == 0 && input[1] == 0; break; end
    inputs << input
end
inputs.size.times do |i|
    inputs[i][0].times do
        puts "#" * inputs[i][1]
    end
    print "\n"
end
