﻿namespace topCoder
{
	using System;
	using System.Collections.Generic;

	class p1
	{
		public void foo()
		{
			string[] sp = Console.ReadLine().Split(' ');
			int n = int.Parse(sp[0]);
			int m = int.Parse(sp[1]);
			bool last = true;
			for (int i = 1; i <= n; i++)
			{
				for (int j = 0; j < m; j++)
				{
					if (i % 2 == 1)
					{
						Console.Write('#');
					}
					else
					{
						if (last)
						{
							if (j == m - 1)
								Console.Write('#');
							else
								Console.Write('.');
						}
						else
						{
							if (j == 0)
								Console.Write('#');
							else
								Console.Write('.');
						}
					}
				}
				Console.WriteLine();
				if (i % 2 == 0)
					last = !last;
			}
		}
	}
}
