#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n) {
    int i = 0, y = 1;
    for (; y <= n / 2 + 1; y++) {
      for (int x = 1; x <= n; x++) {
        if (x < n / 2 + 1 - i || x > n / 2 + 1 + i)
          cout << '*';
        else
          cout << 'D';
      }
      cout << "\n";
      i++;
    }
    i = n / 2 - 1;
    for (; y <= n; y++) {
      for (int x = 1; x <= n; x++) {
        if (x < n / 2 + 1 - i || x > n / 2 + 1 + i)
          cout << '*';
        else
          cout << 'D';
      }
      cout << "\n";
      --i;
    }
    cout << endl;
  }
  return 0;
}
