#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t, n, sum1, sum2, f, d, i, x, k, y, z, w, sum, j, u, c, v, m, r;
  cin >> n;
  for (i = 1; i <= (n / 2) + 1; i++) {
    for (k = 1; k <= (n / 2) - i + 1; k++) {
      cout << "*";
    }
    for (j = 1; j <= (2 * i) - 1; j++) {
      cout << "D";
    }
    for (k = 1; k <= (n / 2) - i + 1; k++) {
      cout << "*";
    }
    cout << endl;
  }
  x = n - 2;
  for (i = 1; i <= (n / 2); i++) {
    for (k = 1; k <= i; k++) {
      cout << "*";
    }
    for (j = 1; j <= x; j++) {
      cout << "D";
    }
    x = x - 2;
    for (k = 1; k <= i; k++) {
      cout << "*";
    }
    cout << endl;
  }
  return 0;
}
