a = '#.'*151
while True:
    x = 0
    (h,w) = map(int, raw_input().split())
    if h==w==0: break
    while x < h :
        if x%2==0:
            print a[0:w]
            x+=1
        else:
            print a[1:w+1]
            x+=1
    print ''