#include <bits/stdc++.h>
using namespace std;char arr[1000][1000]; int m;int n;int w = 0;void init(int m,int n){w = m+n-1; for(int i = 1; i <= n; i++)for(int j = 1; j <= w; j++)arr[i][j] = '.' ;}void Print(){for(int i = 1; i <= n; i++){for(int j = 1; j <= w; j++)cout << arr[i][j] ; cout << endl;}}void dispose(){ for(int i =
1; i <= n; i++){for(int j = i; j < i+m; j++)arr[i][j] = '';for(int j = w-i+1; j > w-i-m+1; j--)arr[i][j]='';}}int main(int argc,char**argv){cin>>m>>n;init(m,n);dispose();Print();}