import sys
while True:
	y,x = map(int,input().split())
	if x==y==0:
		break
	for i in range(y):
		for j in range(x):
			if (i+j)%2==0:
				sys.stdout.write("#")
			else:
				sys.stdout.write(".")
		print()
	print()
	