#include <stdio.h>
char D[7][40] = {
    "#___#__###___###",
    "#__#__#___#___#",
    "#_#___#___#___#",
    "##____#___#___#",
    "#_#___#___#___#",
    "#__#__#___#___#",
    "#___#__###___###"
};

int main()
{
    freopen(".10.in","r",stdin);
    freopen(".10.out","w",stdout);
    int w, h;
    scanf("%d%d",&w,&h);
    for(int a = 0 ; a < 7 ; a++ )
        for(int i = 0 ; i < h ; i++, puts("") )
            for(int b = 0 ; D[a][b] ; b++ )
                for(int j = 0 ; j < w ; j++ )
                    printf("%c", D[a][b]);
}
