#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n;
  while (cin >> n) {
    int d = 1;
    for (int i = 1; i <= n; i++) {
      int star = n - d;
      for (int j = 1; j <= star / 2; j++) cout << '*';
      for (int j = 1; j <= d; j++) cout << 'D';
      for (int j = 1; j <= star / 2; j++) cout << '*';
      if (i >= ((n / 2) + 1))
        d -= 2;
      else
        d += 2;
      cout << endl;
    }
  }
  return 0;
}
