#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  int limit = n / 2;
  int nowMaxDisplayDis = -1;
  for (int i = 0; i < n; i++) {
    if (i > limit) {
      nowMaxDisplayDis--;
    } else {
      nowMaxDisplayDis++;
    }
    for (int j = 0; j < n; j++) {
      if (abs(limit - j) <= nowMaxDisplayDis) {
        cout << "D";
      } else {
        cout << "*";
      }
    }
    cout << endl;
  }
  return 0;
}
