#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y;
  cin >> n;
  char** a = new char*[n];
  for (int i = 0; i < n; i++) {
    a[i] = new char[n];
  }
  x = y = n / 2;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (j >= x && j <= y) {
        cout << "D";
      } else {
        cout << "*";
      }
    }
    if (i < n / 2) {
      x--;
      y++;
    } else {
      x++;
      y--;
    }
    cout << "\n";
  }
  for (int i = 0; i < n; i++) {
    delete[] a[i];
  }
  delete[] a;
  return 0;
}
