#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int need = (n - 1) / 2;
  int d = 1;
  bool ok = true;
  for (int i = 1; i <= n; i++) {
    int t = need;
    while (t > 0) {
      printf("*");
      t--;
    }
    t = d;
    while (t--) {
      printf("D");
    }
    t = 0;
    while (t < need) {
      printf("*");
      t++;
    }
    printf("\n");
    if (need == 0) {
      ok = false;
    }
    if (ok)
      need--;
    else
      need++;
    if (ok)
      d += 2;
    else
      d -= 2;
  }
}
