#include <bits/stdc++.h>
using namespace std;
int main(void) {
  ios ::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  vector<vector<char> > diam(n / 2 + 1, vector<char>(n, '*'));
  for (int i = 0; i <= n / 2; i++) {
    for (int j = n / 2 - i; j <= n / 2 + i; j++) {
      diam[i][j] = 'D';
    }
  }
  for (int i = 0; i <= n / 2; i++) {
    for (int j = 0; j <= n - 1; j++) {
      cout << diam[i][j];
    }
    cout << endl;
  }
  for (int i = n / 2 - 1; i >= 0; i--) {
    for (int j = 0; j <= n - 1; j++) {
      cout << diam[i][j];
    }
    cout << endl;
  }
  return 0;
}
