#coding: utf-8
 
pat = '#.' * 151
 
while True:
    h, w = map(int, input().split())
    if h + w == 0:
        break
    for i in range(h):
        iMod = i % 2
        print(pat[iMod:w + iMod])
    print('')
