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