#include <bits/stdc++.h>
using namespace std;
int main() {
  int d, k = 1, s = 0;
  cin >> d;
  s += d / 2;
  for (int i = 1; i <= d / 2; i++) {
    for (int j = 1; j <= s; j++) {
      cout << '*';
    }
    for (int j = 1; j <= k; j++) {
      cout << 'D';
    }
    for (int j = 1; j <= s; j++) {
      cout << '*';
    }
    k += 2;
    s--;
    cout << endl;
  }
  for (int i = 1; i <= d; i++) {
    cout << 'D';
  }
  cout << endl;
  s = 1;
  k = d - 2;
  for (int i = 1; i <= d / 2; i++) {
    for (int j = 1; j <= s; j++) {
      cout << '*';
    }
    for (int j = 1; j <= k; j++) {
      cout << 'D';
    }
    for (int j = 1; j <= s; j++) {
      cout << '*';
    }
    k -= 2;
    s++;
    cout << endl;
  }
  return 0;
}
