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