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