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