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