#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, Num;
  cin >> n;
  for (int i = 1; i <= 2 * n; i += 2) {
    if (i <= n) {
      for (int k = (n - i) / 2; k > 0; k--) {
        cout << "*";
      }
      for (int j = 1; j <= i; j++) {
        cout << "D";
      }
      for (int k = (n - i) / 2; k > 0; k--) {
        cout << "*";
      }
      cout << endl;
    } else {
      for (int k = (i - n) / 2; k > 0; k--) {
        cout << "*";
      }
      for (int j = 1; j <= (2 * n - i); j++) {
        cout << "D";
      }
      for (int k = (i - n) / 2; k > 0; k--) {
        cout << "*";
      }
      cout << endl;
    }
  }
}
