let () = 
    let rec f _ = 
        let (h, w) = Scanf.sscanf(read_line()) "%d %d" (fun x y -> (x, y)) in
        if h = 0 && w = 0 then ()
        else (
            let row = String.make w '#' in
            for i = 0 to h do Printf.printf "%s\n" row; done;
            print_newline ();
            f ()
        )
    in f ();;
