let () =
  let rec loop () = 
    let h, w = Scanf.scanf "%d %d\n" (fun h w -> h, w) in
    if h = 0 && w = 0 then ()
    else
      (for _ = 1 to h do
        print_endline (String.make w '#');
      done;
      print_endline "";
      loop ())
  in loop ()