#include <bits/stdc++.h>
using ll = long long;
using namespace std;
inline void Files() {}
inline void Func() {
  ll n;
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    for (int j = 1; j <= n; ++j) {
      if (i + j <= n / 2 + 1 || j - i >= n / 2 + 1 ||
          i + j >= 2 * n - n / 2 + 1 || i - j > n / 2)
        cout << "*";
      else
        cout << "D";
    }
    cout << endl;
  }
}
int main() {
  Files();
  Func();
}
