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