while True:
	h,w = [int(s) for s in input().split(' ')]
	if h==0 and w==0:
		break
	else:
		low = '#.' * (w//2+1)
		rectangle = ''
		for i in range(h):
			rectangle += low[i%2:i%2+w] + '\n'
		print(rectangle)