#include <bits/stdc++.h>
using namespace std;
const int MXN = 1e5 + 1;
const int INF = 1e9 + 7;
long long a[MXN], n;
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  long long z = n / 2;
  long long d = 1;
  for (int i = 1; i <= n / 2 + 1; i++) {
    for (int j = 1; j <= z; j++) {
      cout << "*";
    }
    for (int j = 1; j <= d; j++) {
      cout << "D";
    }
    for (int j = 1; j <= z; j++) cout << "*";
    z--;
    d += 2;
    cout << "\n";
  }
  z = 1;
  d = n - 2;
  for (int i = 1; i <= n / 2; i++) {
    for (int j = 1; j <= z; j++) {
      cout << "*";
    }
    for (int j = 1; j <= d; j++) {
      cout << "D";
    }
    for (int j = 1; j <= z; j++) {
      cout << "*";
    }
    z++;
    d -= 2;
    cout << "\n";
  }
  return 0;
}
