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