#include <bits/stdc++.h>
using namespace std;
int n, x;
char t[200][200];
string ch, ch1;
bool b = 0;
int main() {
  cin >> n;
  int cur = n / 2;
  int cul = n / 2;
  for (int i = 0; i < n; i++) {
    for (int j = cur; j <= cul; j++) {
      t[i][j] = 'D';
    }
    if (cur == 0 && cul == n - 1) b = 1;
    if (b) {
      cur++;
      cul--;
    } else {
      cul++;
      cur--;
    }
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (t[i][j] != 'D')
        cout << '*';
      else
        cout << t[i][j];
    }
    cout << endl;
  }
}
