Problem:
Print a Rectangle

Draw a rectangle which has a height of H cm and a width of W cm. Draw a 1-cm square by single '#'.

Input

The input consists of multiple datasets. Each dataset consists of two integers H and W separated by a single space.

The input ends with two 0 (when both H and W are zero).

Output

For each dataset, print the rectangle made of H × W '#'.

Print a blank line after each dataset.

Constraints

1 ≤ H ≤ 300

1 ≤ W ≤ 300

Sample Input

3 4
5 6
2 2
0 0

Sample Output

####
####
####

######
######
######
######
######

##
##

Solution in PHP (judge verdict: Accepted)

<?php

$main = new Main;
$main->execute();

class Main {

    public function execute()
    {
        while (true) {
            fscanf(STDIN, '%d %d', $height, $width);

            if (! $this->canExecute($width, $height)) return;

            $rect = new Rectangle($width, $height);
            $rect->draw();
        }
    }

    public function canExecute($width, $height)
    {
        return ($width != 0) && ($height != 0);
    }

}


/**
 * ????????¢???????????????
 */
class Rectangle {
    private $width;
    private $height;
    private $char = '#';

    public function __construct($width, $height)
    {
        $this->width  = $width;
        $this->height = $height;
    }

    public function draw()
    {
        for ($line = 0; $line < $this->height; $line++) {
             $this->drawLine($this->width, $this->char);
        }
        $this->drawEmptyLine();
    }

    public function drawLine()
    {
        echo str_repeat($this->char, $this->width), PHP_EOL;
    }

    public function drawEmptyLine()
    {
        echo PHP_EOL;
    }

}