#include <bits/stdc++.h>
using namespace std;
int n, stars;
string str;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    if ((n / 2) + 1 == i)
      stars = 0;
    else if ((n / 2) + 1 < i)
      stars = i - ((n / 2) + 1);
    else
      stars = ((n / 2) + 1) - i;
    str = "";
    for (int j = 0; j < stars; ++j) str += "*";
    for (int j = 0; j < n - stars * 2; ++j) str += "D";
    for (int j = 0; j < stars; ++j) str += "*";
    cout << str << endl;
  }
  return 0;
}
