#include <bits/stdc++.h>
using namespace std;
string s;
int n, k;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) s += '*';
  int i = n / 2;
  while (s[0] != 'D') {
    s[i] = 'D';
    s[s.size() - i - 1] = 'D';
    cout << s << endl;
    i--;
  }
  while (s[n / 2 - 1] != '*') {
    i++;
    s[i] = '*';
    s[s.size() - i - 1] = '*';
    cout << s << endl;
  }
}
