#include <bits/stdc++.h>
using namespace std;
vector<string> vec;
int main() {
  int n, num, odd(1), counter(0);
  string str;
  cin >> n;
  num = (n - 1) / 2;
  counter = (n + 1) / 2;
  for (int i = 1; i <= counter; i++) {
    for (int x = 0; x < num; x++) {
      cout << '*';
      str += '*';
    }
    for (int y = 0; y < odd; y++) {
      cout << 'D';
      if (i != counter) str += 'D';
    }
    for (int z = 0; z < num; z++) {
      cout << '*';
      str += '*';
    }
    cout << endl;
    if (i != counter) vec.push_back(str);
    str = "";
    num--;
    odd += 2;
  }
  reverse(vec.begin(), vec.end());
  for (int i = 0; i < vec.size(); i++) {
    cout << vec[i] << endl;
  }
}
