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