while True:
    H,W = map(int,input().split())
    if H==W==0:
        break;
    num = H * W
    for i in range(1,num+1):
        if num % W == 0: print()
        elif num  % 2 == 1:print("#")
        elif num % 2 == 0:print(".")
    print()
