#include <bits/stdc++.h>
using namespace std;
int a[101][101];
int main() {
  int n;
  int cur;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      cur = abs(n / 2 + 1 - i) + abs(n / 2 + 1 - j);
      if (cur <= n / 2)
        cout << "D";
      else
        cout << "*";
    }
    cout << endl;
  }
  return 0;
}
