#include <stdio.h>
int printRectangle(int width,int height) {
for(int i = 0; width > i; i++) {
for(int j = 0; height > j; j++) {
printf("#");
}
printf("\n");
}
return 0;
}
int main () {
int a = 0;
int b = 0;
scanf("%d %d", &a, &b);
printRectangle(a, b);
return 0;
}