#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, m, i, v;
  cin >> k;
  m = (k + 1) / 2;
  for (i = 1; i <= m; i++) {
    for (v = 1; v <= k; v++) {
      if (abs(m - v) >= i)
        cout << "*";
      else
        cout << "D";
    }
    cout << endl;
  }
  for (i = (m - 1); i >= 1; i--) {
    for (v = 1; v <= k; v++) {
      if (abs(m - v) >= i)
        cout << "*";
      else
        cout << "D";
    }
    cout << endl;
  }
}
