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