while True:
    h, w = input().split()
    if h == "0" and w == "0":
        break
    s = "."
    for j in range(int(h)):
        for i in range(int(w)):
            if s == ".":
                s = "#"
            else:
                s = "."
            print(s, end="")
        print()