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