#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, center;
  cin >> n;
  center = n / 2;
  for (int row = 0; row < n; row++) {
    for (int col = 0; col < n; col++) {
      if (col >= center - row && col <= center + row) {
        cout << "D";
      } else if (col < center - row || col > center + row) {
        cout << "*";
      }
    }
    cout << endl;
    if (row == center) break;
  }
  for (int row = center - 1; row >= 0; row--) {
    for (int col = 0; col < n; col++) {
      if (col >= (center - row) && col <= (center + row)) {
        cout << "D";
      } else {
        cout << "*";
      }
    }
    cout << endl;
  }
  return 0;
}
