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