#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  std::ios::sync_with_stdio(false);
  int n, counter = 0;
  bool g = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    int x = 0;
    for (int k = 1; k <= n; k++) {
      if (k >= (n + 1) / 2 - counter && counter * 2 + 1 > x) {
        cout << 'D';
        x++;
      } else
        cout << '*';
    }
    cout << endl;
    if (counter == (n + 1) / 2 - 1) {
      g = 1;
    }
    if (g) {
      counter--;
    } else
      counter++;
  }
  return 0;
}
