#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int g = 1, s;
  bool ok = 0;
  for (int i = 0; i < n; i++) {
    s = (n - g) / 2;
    for (int j = 1; j <= s; j++) putchar('*');
    for (int j = 1; j <= g; j++) putchar('D');
    for (int j = 1; j <= s; j++) putchar('*');
    printf("\n");
    if (ok)
      g -= 2;
    else
      g += 2;
    if (g == n) ok = 1;
  }
}
