#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int tope = n / 2;
  int cant = 1;
  int esp = tope;
  vector<string> res;
  for (int i = 0; i < tope; i++) {
    string s = "";
    for (int j = 0; j < esp; j++) {
      s += '*';
    }
    for (int j = 0; j < cant; j++) {
      s += 'D';
    }
    for (int j = 0; j < esp; j++) {
      s += '*';
    }
    res.push_back(s);
    esp--;
    cant += 2;
  }
  for (int i = 0; i <= tope; i++) {
    string s = "";
    for (int j = 0; j < esp; j++) {
      s += '*';
    }
    for (int j = 0; j < cant; j++) {
      s += 'D';
    }
    for (int j = 0; j < esp; j++) {
      s += '*';
    }
    res.push_back(s);
    esp++;
    cant -= 2;
  }
  for (int i = 0; i < res.size(); i++) {
    cout << res[i] << endl;
  }
  return 0;
}
