#include <bits/stdc++.h>
using namespace std;
void fscpp() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
void fs(long long &x) {
  bool neg = false;
  register long long c;
  x = 0;
  c = getchar();
  if (c == '-') {
    neg = true;
    c = getchar();
  }
  for (; (c > 47 && c < 58); c = getchar()) x = (x << 1) + (x << 3) + c - 48;
  if (neg) x *= -1;
}
long long int expo(long long int x, unsigned long long int y, long long int p) {
  int res = 1;
  x = x % p;
  while (y > 0) {
    if (y & 1) res = (res % p * x % p) % p;
    y = y >> 1;
    x = (x % p * x % p) % p;
  }
  return res % p;
}
int main() {
  fscpp();
  long long t, ct, n, r, f, q, k, m, l;
  vector<string> a;
  string s;
  cin >> t;
  for (long long i = t - 1; i >= 0; i -= 2) {
    ct = t - (2 * (i / 2));
    s.clear();
    for (long long int j = 0; j < i / 2; j++) {
      cout << "*";
      s += "*";
    }
    for (long long int j = 0; j < ct; j++) {
      cout << "D";
      s += "D";
    }
    for (long long int j = 0; j < i / 2; j++) {
      cout << "*";
      s += "*";
    }
    a.push_back(s);
    cout << "\n";
  }
  reverse(a.begin(), a.end());
  for (long long int i = 1; i < a.size(); i++) {
    cout << a[i] << "\n";
  }
  return 0;
}
