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