#include <iostream>
using namespace std;
int main() {
int n, m; cin >> m >> n;
// 矩阵的宽要自己算下
int k = n + m - 1;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= k; j++)
// 四条线是 y = -x + b 和 y = x + c
if ((j >= i && j < i + m) || (j >= n - i + 1 && j < n - i + 1 + m)) cout << '*';
else cout << '.';
cout << endl;
}
return 0;
}